test cases for the new handling of iterators by the is operator
This commit is contained in:
parent
862c0ef83d
commit
249dd70273
3 changed files with 36 additions and 9 deletions
|
|
@ -323,11 +323,6 @@ proc isOpImpl(c: PContext, n: PNode): PNode =
|
|||
result = newIntNode(nkIntLit, ord(t.kind == tyProc and
|
||||
t.callConv == ccClosure and
|
||||
tfIterator notin t.flags))
|
||||
of "iterator":
|
||||
let t = skipTypes(t1, abstractRange)
|
||||
result = newIntNode(nkIntLit, ord(t.kind == tyProc and
|
||||
t.callConv == ccClosure and
|
||||
tfIterator in t.flags))
|
||||
else:
|
||||
var t2 = n[2].typ.skipTypes({tyTypeDesc})
|
||||
let lifted = liftParamType(c, skType, newNodeI(nkArgList, n.info),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue