From ed56b8c17372328726eb75542d6a873b279864e4 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 27 Jun 2013 08:06:55 +0200 Subject: [PATCH] fixes #442 --- compiler/sigmatch.nim | 31 +++++++++++++++++--------- tests/reject/tnicerrorforsymchoice.nim | 18 +++++++++++++++ 2 files changed, 38 insertions(+), 11 deletions(-) create mode 100644 tests/reject/tnicerrorforsymchoice.nim diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 6fb250179..041baf126 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -166,6 +166,15 @@ proc writeMatches*(c: TCandidate) = Writeln(stdout, "intconv matches: " & $c.intConvMatches) Writeln(stdout, "generic matches: " & $c.genericMatches) +proc argTypeToString(arg: PNode): string = + if arg.kind in nkSymChoices: + result = typeToString(arg[0].typ) + for i in 1 ..