bugfix: 'T = ref T' is an illegal recursive type
This commit is contained in:
parent
62ccf13529
commit
279e897eab
5 changed files with 9 additions and 3 deletions
|
|
@ -255,6 +255,7 @@ proc evalIs(n, a: PNode): PNode =
|
|||
result = newIntNode(nkIntLit, ord(t.kind == tyProc and
|
||||
t.callConv == ccClosure and
|
||||
tfIterator in t.flags))
|
||||
else: discard
|
||||
else:
|
||||
# XXX semexprs.isOpImpl is slightly different and requires a context. yay.
|
||||
let t2 = n[2].typ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue