fixes #20162; locals doesn't work with ORC [backport] (#20163)

fixes #20162; locals doesn't work with ORC
This commit is contained in:
ringabout 2022-08-23 15:00:23 +08:00 • committed by GitHub
commit 25c6491b65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -15,7 +15,7 @@ import ".." / [ast, astalgo,
proc semLocals*(c: PContext, n: PNode): PNode =
var counter = 0
var tupleType = newTypeS(tyTuple, c)
result = newNodeIT(nkPar, n.info, tupleType)
result = newNodeIT(nkTupleConstr, n.info, tupleType)
tupleType.n = newNodeI(nkRecList, n.info)
let owner = getCurrOwner(c)
# for now we skip openarrays ...

View file

@ -1,4 +1,5 @@
discard """
matrix: "--mm:refc; --mm:orc"
output: '''(x: "string here", a: 1)
b is 5
x is 12'''