* fixes the regressions caused by the fix for #20107 [backport]
This commit is contained in:
parent
d4c0d35b32
commit
5211a471c8
4 changed files with 4 additions and 1 deletions
|
|
@ -735,6 +735,7 @@ proc derefBlock(p: BProc, e: PNode, d: var TLoc) =
|
|||
# We transform (block: x)[] to (block: x[])
|
||||
let e0 = e[0]
|
||||
var n = shallowCopy(e0)
|
||||
n.typ = e.typ
|
||||
for i in 0 ..< e0.len - 1:
|
||||
n[i] = e0[i]
|
||||
n[e0.len-1] = newTreeIT(nkHiddenDeref, e.info, e.typ, e0[e0.len-1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue