diff options
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 895920310..5a8c76216 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -352,6 +352,11 @@ proc isOpImpl(c: PContext, n: PNode, flags: TExprFlags): PNode = res = t.kind == tyProc and t.callConv == ccClosure and tfIterator notin t.flags + of "iterator": + let t = skipTypes(t1, abstractRange) + res = t.kind == tyProc and + t.callConv == ccClosure and + tfIterator in t.flags else: res = false else: |