From 8a5f5504919acb4ccbebe3025b22d11ca67ee82e Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Fri, 9 Oct 2020 22:05:27 -0700 Subject: [PATCH] followup after #15529 and #15534 (#15536) --- tests/vm/tvmmisc.nim | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim index 7da1c6743b..7ac75c7c5a 100644 --- a/tests/vm/tvmmisc.nim +++ b/tests/vm/tvmmisc.nim @@ -1,7 +1,6 @@ # bug #4462 import macros import os -import strutils block: proc foo(t: typedesc) {.compileTime.} = @@ -202,10 +201,6 @@ block: # bug #13081 doAssert $j2 == """(x0: 1.3, kind: k2, x2: "abc")""" doAssert $j3 == """(x0: 1.3, kind: k3, x3: "abc2")""" - when false: - # BUG: this doesn't work yet - # Error: unhandled exception: 'sons' is not accessible using discriminant 'kind' of type 'TNode' [FieldDefect] - discard j1.x1 - static: - # ditto - discard j1.x1 + doAssert j1.x1 == 12 + static: + doAssert j1.x1 == 12