followup after #15529 and #15534 (#15536)

This commit is contained in:
Timothee Cour
2020-10-09 22:05:27 -07:00
committed by GitHub
parent 442841037a
commit 8a5f550491

View File

@@ -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