parent
baae8ef38f
commit
9a2a83ad71
1 changed files with 0 additions and 19 deletions
|
|
@ -65,22 +65,3 @@ macro check_gen_proc(ex: typed): (bool, bool) =
|
||||||
let a = @[1,2,3]
|
let a = @[1,2,3]
|
||||||
assert: check_gen_proc(len(a)) == (false, true)
|
assert: check_gen_proc(len(a)) == (false, true)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------
|
|
||||||
# issue #16110
|
|
||||||
|
|
||||||
macro check(x: type): untyped =
|
|
||||||
let z = getType(x)
|
|
||||||
let y = getImpl(z[1])
|
|
||||||
echo z.treeRepr
|
|
||||||
expectKind(z[1], nnkSym)
|
|
||||||
expectKind(y[0], nnkSym)
|
|
||||||
doAssert(y[0] == z[1])
|
|
||||||
|
|
||||||
type
|
|
||||||
TirePtr = ptr object
|
|
||||||
code: int
|
|
||||||
|
|
||||||
var z: TirePtr
|
|
||||||
check(typeof(z[]))
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue