* alternative way to fix #16022 * add testcase for #16022 [backport:1.4]
This commit is contained in:
parent
109cc45398
commit
6cf5ca1dc2
2 changed files with 10 additions and 3 deletions
|
|
@ -7,6 +7,7 @@ omega 200
|
|||
Some(null)
|
||||
None[JsonNode]
|
||||
(numeric: "")
|
||||
hello world
|
||||
'''
|
||||
joinable: false
|
||||
"""
|
||||
|
|
@ -138,7 +139,7 @@ block:
|
|||
echo ($$a2).to[:Option[JsonNode]]
|
||||
|
||||
|
||||
# bug #15620
|
||||
# bug #15620
|
||||
block:
|
||||
let str = """{"numeric": null}"""
|
||||
|
||||
|
|
@ -148,3 +149,9 @@ block:
|
|||
|
||||
let test = to[LegacyEntry](str)
|
||||
echo test
|
||||
|
||||
# bug #16022
|
||||
block:
|
||||
let p: proc () = proc () = echo "hello world"
|
||||
let poc = (to[typeof(p)]($$p))
|
||||
poc()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue