From bc65a7c76b627beef294e87bc1b1db540e4ee610 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sat, 16 Jan 2016 13:54:28 +0000 Subject: Added test for #1923. --- tests/closure/tcodegenerr1923.nim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/closure/tcodegenerr1923.nim (limited to 'tests/closure') diff --git a/tests/closure/tcodegenerr1923.nim b/tests/closure/tcodegenerr1923.nim new file mode 100644 index 000000000..ee131ae15 --- /dev/null +++ b/tests/closure/tcodegenerr1923.nim @@ -0,0 +1,9 @@ +type + Foo[M] = proc() : M + +proc bar[M](f : Foo[M]) = + discard f() + +proc baz() : int = 42 + +bar(baz) \ No newline at end of file -- cgit 1.4.1-2-gfad0