This commit is contained in:
Araq 2017-12-15 11:21:49 +01:00
commit a5e4d2f7a3
3 changed files with 51 additions and 5 deletions

View file

@ -179,5 +179,11 @@ proc isPartOf*(a, b: PNode): TAnalysisResult =
result = isPartOf(a[0], b)
if result == arNo: result = arMaybe
else: discard
of nkObjConstr:
result = arNo
for i in 1..<b.len:
let res = isPartOf(a, b[i][1])
if res != arNo:
result = res
if res == arYes: break
else: discard