From d913fdb2800d83680e413cd8a5f07b7f85deac6e Mon Sep 17 00:00:00 2001 From: "rumpf_a@web.de" <> Date: Sun, 21 Feb 2010 19:42:36 +0100 Subject: start of tests refactoring; sqlite3 new wrapper fixes --- tests/reject/tbind2.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/reject/tbind2.nim (limited to 'tests/reject/tbind2.nim') diff --git a/tests/reject/tbind2.nim b/tests/reject/tbind2.nim new file mode 100644 index 000000000..41711083f --- /dev/null +++ b/tests/reject/tbind2.nim @@ -0,0 +1,10 @@ +# Test the new ``bind`` keyword for templates + +proc p1(x: int8, y: int): int = return x + y +proc p1(x: int, y: int8): int = return x - y + +template tempBind(x, y: expr): expr = + bind p1(x, y) #ERROR_MSG ambiguous call + +echo tempBind(1'i8, 2'i8) + -- cgit 1.4.1-2-gfad0