overloading of '=' works

This commit is contained in:
Araq 2015-04-06 23:20:41 +02:00
commit 05e39cf6ad
9 changed files with 147 additions and 6 deletions

View file

@ -1233,8 +1233,6 @@ proc asgnToResultVar(c: PContext, n, le, ri: PNode) {.inline.} =
template resultTypeIsInferrable(typ: PType): expr =
typ.isMetaType and typ.kind != tyTypeDesc
include semasgn
proc semAsgn(c: PContext, n: PNode): PNode =
checkSonsLen(n, 2)
var a = n.sons[0]