From 019faf00bf1bf09ff0eb4f14f2745e7594baac73 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 25 Mar 2015 11:50:38 +0100 Subject: fixes #2397 --- tests/overload/tsystemcmp.nim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/overload/tsystemcmp.nim') diff --git a/tests/overload/tsystemcmp.nim b/tests/overload/tsystemcmp.nim index 9bfca35d7..68cbf9fa7 100644 --- a/tests/overload/tsystemcmp.nim +++ b/tests/overload/tsystemcmp.nim @@ -16,3 +16,7 @@ proc cmp(a, b: MyType): int = cmp(a.x, b.x) var modulesB = @[MyType(x: "ho"), MyType(x: "ha")] sort(modulesB, cmp) + +# bug #2397 + +proc f(x: (proc(a,b: string): int) = system.cmp) = discard -- cgit 1.4.1-2-gfad0