diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-10-09 22:05:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 07:05:27 +0200 |
commit | 8a5f5504919acb4ccbebe3025b22d11ca67ee82e (patch) | |
tree | 961a6a1989857bedfc6e453369db4502a8b07938 | |
parent | 442841037a57d3b0f36ed1c6fd1fffd7110253d2 (diff) | |
download | Nim-8a5f5504919acb4ccbebe3025b22d11ca67ee82e.tar.gz |
followup after #15529 and #15534 (#15536)
-rw-r--r-- | tests/vm/tvmmisc.nim | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim index 7da1c6743..7ac75c7c5 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 |