Merge branch 'devel' into bigbreak

Conflicts:
	lib/pure/osproc.nim
This commit is contained in:
Araq 2014-11-03 22:50:55 +01:00
commit a53e97fc89
7 changed files with 157 additions and 33 deletions

View file

@ -624,6 +624,9 @@ proc transformCall(c: PTransf, n: PNode): PTransNode =
# bugfix: check after 'transformSons' if it's still a method call:
# use the dispatcher for the call:
if s.sons[0].kind == nkSym and s.sons[0].sym.kind == skMethod:
let t = lastSon(s.sons[0].sym.ast)
if t.kind != nkSym or sfDispatcher notin t.sym.flags:
methodDef(s.sons[0].sym, false)
result = methodCall(s).PTransNode
else:
result = s.PTransNode