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

@ -367,6 +367,7 @@ proc isOpImpl(c: PContext, n: PNode): PNode =
result = newIntNode(nkIntLit, ord(t.kind == tyProc and
t.callConv == ccClosure and
tfIterator notin t.flags))
else: discard
else:
var t2 = n[2].typ.skipTypes({tyTypeDesc})
maybeLiftType(t2, c, n.info)