summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/semexprs.nim')
-rwxr-xr-xcompiler/semexprs.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 9f2b431f6..c5e3fdc1e 100755
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -589,8 +589,10 @@ proc semStaticExpr(c: PContext, n: PNode): PNode =
 
 proc semOverloadedCallAnalyseEffects(c: PContext, n: PNode, nOrig: PNode,
                                      flags: TExprFlags): PNode =
-  if {efInTypeOf, efWantIterator} * flags != {}:
-    # consider 'proc p(): seq[int];  for x in p()' here and
+  if flags*{efInTypeOf, efWantIterator} != {}:
+    # consider: 'for x in pReturningArray()' --> we don't want the restriction
+    # to 'skIterator' anymore; skIterator is preferred in sigmatch already for
+    # typeof support.
     # for ``type(countup(1,3))``, see ``tests/ttoseq``.
     result = semOverloadedCall(c, n, nOrig,
       {skProc, skMethod, skConverter, skMacro, skTemplate, skIterator})
ous revision' href='/gbmor/clinte/blame/src/main.rs?id=f79e97f5c3cae593aefaf7b02664e961572092c8'>^
cf3b662 ^
99273b6 ^
8ecc294 ^
cf3b662 ^
c5ea653 ^
ca7dc58 ^
d64124e ^
05649a5 ^
5b59ba3 ^
94e8df5 ^
c5ea653 ^
bb327d3 ^
99c5537 ^
bb327d3 ^
99c5537 ^
eca1e0a ^


841e6a3 ^
c5ea653 ^
841e6a3 ^

bb327d3 ^
841e6a3 ^

99c5537 ^
bb327d3 ^
99c5537 ^
eca1e0a ^


841e6a3 ^
c5ea653 ^
8d50587 ^
841e6a3 ^
bb327d3 ^
841e6a3 ^

8ecc294 ^
841e6a3 ^
bb327d3 ^
0c32375 ^



05649a5 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60