Skip to content

Commit 19cf700

Browse files
committed
reference bug #16003
1 parent 1e51c35 commit 19cf700

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/misc/taddr.nim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,15 @@ template test14339() = # bug #14339
152152
val: int
153153
proc bar(c: Node): var int =
154154
var n = c
155-
doAssert n.val == n[].val
155+
# doAssert n.val == n[].val
156156
n.val
157157
var a = Node(val: 3)
158158
a.bar() = 5
159-
doAssert a.val == 5
159+
when nimvm:
160+
doAssert a.val == 5
161+
else:
162+
when not defined(js): # pending bug #16003
163+
doAssert a.val == 5
160164

161165
test14339()
162166
static: test14339()

0 commit comments

Comments
 (0)