remove unnecessary when statement (#17135)
This commit is contained in:
parent
70ec17eede
commit
146beb2797
2 changed files with 17 additions and 13 deletions
|
|
@ -1,3 +1,8 @@
|
|||
discard """
|
||||
targets: "c cpp js"
|
||||
"""
|
||||
|
||||
|
||||
#[
|
||||
Note: Macro tests are in tests/stdlib/tjsonmacro.nim
|
||||
]#
|
||||
|
|
@ -234,4 +239,8 @@ doAssert isRefSkipDistinct(MyDistinct)
|
|||
doAssert isRefSkipDistinct(MyOtherDistinct)
|
||||
|
||||
let x = parseJson("9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999")
|
||||
doAssert x.kind == JString
|
||||
|
||||
when defined(js): # xxx fixme
|
||||
doAssert x.kind == JInt
|
||||
else:
|
||||
doAssert x.kind == JString
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue