bugfix: 'T = ref T' is an illegal recursive type

This commit is contained in:
Araq 2014-10-02 16:15:16 +02:00
commit 279e897eab
5 changed files with 9 additions and 3 deletions

View file

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