diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-03-06 23:03:02 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-03-06 23:03:02 +0200 |
commit | 249dd7027302c913513cf577beed83512236fc57 (patch) | |
tree | 527fd7921e51c8efa5fc079d7eefea42e9ed27ef /compiler/semexprs.nim | |
parent | 862c0ef83d7a85798df0474522dd4ba8cfcab674 (diff) | |
download | Nim-249dd7027302c913513cf577beed83512236fc57.tar.gz |
test cases for the new handling of iterators by the `is` operator
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index ebdd79a8c..203a51816 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -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), |