diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-04-06 09:53:59 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-04-06 09:53:59 +0200 |
commit | bc681a328f80d0b04a75840e76ef57546d99b402 (patch) | |
tree | 72d082ad6d5cd0bec84e0c6cb95dfaebb552629a /compiler/semexprs.nim | |
parent | f101f09256d5d788a404c1d0a2301ed7853b0f14 (diff) | |
download | Nim-bc681a328f80d0b04a75840e76ef57546d99b402.tar.gz |
fixes unowned->owned conversion rule
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 35b03c1b5..73e92ab75 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1616,7 +1616,7 @@ proc semAsgn(c: PContext, n: PNode; mode=asgnNormal): PNode = c.p.owner.typ.sons[0] = rhsTyp else: typeMismatch(c.config, n.info, lhs.typ, rhsTyp) - asgnToResult(c, n, n.sons[0], n.sons[1]) + asgnToResult(c, n, n.sons[0], rhs) n.sons[1] = fitNode(c, le, rhs, goodLineInfo(n[1])) liftTypeBoundOps(c, lhs.typ, lhs.info) |