File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,12 @@ block: # case ref objects
97
97
const j = parseJson (""" {"x1":12,"x2":"asdf","x3":[1,2]} """ )
98
98
const x1 = j[" x1" ].getInt
99
99
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
-
105
100
doAssert x1 == 12
106
101
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
107
106
108
107
block : # regression test with closures
109
108
type MyProc = proc (x: int ): int
@@ -112,6 +111,6 @@ block: # regression test with closures
112
111
result .add even
113
112
result .setLen 2 # intentionally leaving 1 unassigned
114
113
const a = bar ()
115
- when not defined (js):
114
+ when not defined (js): # xxx
116
115
doAssert a == bar ()
117
116
doAssert a [0 ](2 ) == 2 * 3
You can’t perform that action at this time.
0 commit comments