* Fixes #9844
This commit is contained in:
Clyybber 2019-05-09 22:58:41 +02:00 • committed by Andreas Rumpf
commit 6be9b98e35
2 changed files with 23 additions and 2 deletions

View file

@ -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