From a71c5f98ea92c4c9f96ffe9265600f9cc2b7a8ee Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 18 Sep 2012 00:36:48 +0200 Subject: made tests green again --- compiler/semexprs.nim | 2 +- compiler/semgnrc.nim | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'compiler') diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index ae9cf26d6..3c630eeec 100755 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -1427,7 +1427,7 @@ proc buildCall(n: PNode): PNode = elif n.kind in nkCallKinds and n.sons[0].kind == nkDotExpr: # x.y(a) -> y(x, a) let a = n.sons[0] - result = newNodeI(nkDotCall, n.info, n.len+1) + result = newNodeI(nkCall, n.info, n.len+1) result.sons[0] = a.sons[1] result.sons[1] = a.sons[0] for i in 1 ..