fixes #20162; locals doesn't work with ORC
This commit is contained in:
parent
8fc19b9e12
commit
25c6491b65
2 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ import ".." / [ast, astalgo,
|
||||||
proc semLocals*(c: PContext, n: PNode): PNode =
|
proc semLocals*(c: PContext, n: PNode): PNode =
|
||||||
var counter = 0
|
var counter = 0
|
||||||
var tupleType = newTypeS(tyTuple, c)
|
var tupleType = newTypeS(tyTuple, c)
|
||||||
result = newNodeIT(nkPar, n.info, tupleType)
|
result = newNodeIT(nkTupleConstr, n.info, tupleType)
|
||||||
tupleType.n = newNodeI(nkRecList, n.info)
|
tupleType.n = newNodeI(nkRecList, n.info)
|
||||||
let owner = getCurrOwner(c)
|
let owner = getCurrOwner(c)
|
||||||
# for now we skip openarrays ...
|
# for now we skip openarrays ...
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
|
matrix: "--mm:refc; --mm:orc"
|
||||||
output: '''(x: "string here", a: 1)
|
output: '''(x: "string here", a: 1)
|
||||||
b is 5
|
b is 5
|
||||||
x is 12'''
|
x is 12'''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue