mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user