From 55e86184a5289ee61b6105ed4ddb2cc1ca4f76dc Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 23 Aug 2016 01:29:30 +0200 Subject: fixes #4600 --- tests/generics/ttempl_in_generic.nim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/generics/ttempl_in_generic.nim (limited to 'tests') diff --git a/tests/generics/ttempl_in_generic.nim b/tests/generics/ttempl_in_generic.nim new file mode 100644 index 000000000..f04b9d216 --- /dev/null +++ b/tests/generics/ttempl_in_generic.nim @@ -0,0 +1,8 @@ + +# bug #4600 +template foo(x: untyped): untyped = echo 1 +template foo(x,y: untyped): untyped = echo 2 + +proc bar1[T](x: T) = foo(x) +proc bar2(x: float) = foo(x,x) +proc bar3[T](x: T) = foo(x,x) -- cgit 1.4.1-2-gfad0