summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2019-05-09 22:58:41 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-05-09 22:58:41 +0200
commit6be9b98e35551fcdeccef0379c9771626a307ed2 (patch)
tree2201be98b6e98e35cd611709b491c449d6a8e4e7 /compiler
parentf4c9eb17741190ee73d4f2e9f3df3485581e8371 (diff)
downloadNim-6be9b98e35551fcdeccef0379c9771626a307ed2.tar.gz
Fix #9844 (#11216)
* Fixes #9844
Diffstat (limited to 'compiler')
-rw-r--r--compiler/aliases.nim9
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler/aliases.nim b/compiler/aliases.nim
index ef56c5d6c..c5d488463 100644
--- a/compiler/aliases.nim
+++ b/compiler/aliases.nim
@@ -181,9 +181,16 @@ proc isPartOf*(a, b: PNode): TAnalysisResult =
       else: discard
     of nkObjConstr:
       result = arNo
-      for i in 1..<b.len:
+      for i in 1 ..< b.len:
         let res = isPartOf(a, b[i][1])
         if res != arNo:
           result = res
           if res == arYes: break
+    of nkCall:
+      result = arNo
+      for i in 1 ..< b.len:
+        let res = isPartOf(a, b[i])
+        if res != arNo:
+          result = res
+          if res == arYes: break
     else: discard