Fixed objects being erroneously zeroed out before object construction (#12814) [backport]

This commit is contained in:
Neelesh Chandola 2019-12-05 22:01:51 +05:30 • committed by Andreas Rumpf
commit 1db21721ec
2 changed files with 25 additions and 0 deletions

View file

@ -193,4 +193,7 @@ proc isPartOf*(a, b: PNode): TAnalysisResult =
if res != arNo:
result = res
if res == arYes: break
of nkBracket:
if b.len > 0:
result = isPartOf(a, b[0])
else: discard