restore return type inference
This commit is contained in:
parent
723efe7cfb
commit
fa3bb8d66b
2 changed files with 4 additions and 1 deletions
|
|
@ -1164,7 +1164,7 @@ proc semAsgn(c: PContext, n: PNode): PNode =
|
|||
if lhsIsResult: {efAllowDestructor} else: {})
|
||||
if lhsIsResult:
|
||||
n.typ = enforceVoidContext
|
||||
if lhs.sym.typ.kind == tyGenericParam:
|
||||
if lhs.sym.typ.isMetaType:
|
||||
if cmpTypes(c, lhs.typ, rhs.typ) == isGeneric:
|
||||
internalAssert c.p.resultSym != nil
|
||||
lhs.typ = rhs.typ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue