remove unnecessary when statement (#17135)

This commit is contained in:
flywind 2021-02-21 04:17:25 -06:00 • committed by GitHub
commit 146beb2797
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 13 deletions

View file

@ -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