Fixed objects being erroneously zeroed out before object construction (#12814) [backport]
This commit is contained in:
parent
3fbb3bfd3f
commit
1db21721ec
2 changed files with 25 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue