fixes the regression
This commit is contained in:
parent
5b1a2eecd5
commit
0a93cf6fb9
1 changed files with 2 additions and 1 deletions
|
|
@ -227,7 +227,8 @@ proc semConv(c: PContext, n: PNode): PNode =
|
|||
if targetType.kind in {tySink, tyLent, tyOwned}:
|
||||
let baseType = semTypeNode(c, n.sons[1], nil).skipTypes({tyTypeDesc})
|
||||
let t = newTypeS(targetType.kind, c)
|
||||
t.flags.incl tfHasOwned
|
||||
if targetType.kind == tyOwned:
|
||||
t.flags.incl tfHasOwned
|
||||
t.rawAddSonNoPropagationOfTypeFlags baseType
|
||||
result = newNodeI(nkType, n.info)
|
||||
result.typ = makeTypeDesc(c, t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue