Skip to content

Commit 6a11fe7

Browse files
committed
fixup
1 parent f4bafa3 commit 6a11fe7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/vm/tconstrefs.nim

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,12 @@ block: # case ref objects
9797
const j = parseJson(""" {"x1":12,"x2":"asdf","x3":[1,2]} """)
9898
const x1 = j["x1"].getInt
9999
const x2 = j["x3"].to(seq[int])
100-
when false:
101-
# pending https://github.com/nim-lang/Nim/issues/13081
102-
echo j["x1"].getInt
103-
doAssert j["x1"].getInt.static == 12
104-
105100
doAssert x1 == 12
106101
doAssert x2 == @[1, 2]
102+
doAssert j["x1"].getInt.static == 12
103+
when false:
104+
# xxx still an issue, related to closed bugs: bug #13081, bug #8015
105+
echo j["x1"].getInt
107106

108107
block: # regression test with closures
109108
type MyProc = proc (x: int): int
@@ -112,6 +111,6 @@ block: # regression test with closures
112111
result.add even
113112
result.setLen 2 # intentionally leaving 1 unassigned
114113
const a = bar()
115-
when not defined(js):
114+
when not defined(js): # xxx
116115
doAssert a == bar()
117116
doAssert a[0](2) == 2*3

0 commit comments

Comments
 (0)