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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue