summary refs log tree commit diff stats
path: root/tests/overload/tsystemcmp.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-03-25 11:50:38 +0100
committerAraq <rumpf_a@web.de>2015-03-25 11:50:38 +0100
commit019faf00bf1bf09ff0eb4f14f2745e7594baac73 (patch)
tree4a340b174207ea1d42c4ea7985ff96821042ea2e /tests/overload/tsystemcmp.nim
parent178a85cd25632da8b5e30607eaecf8dacdcb9e85 (diff)
downloadNim-019faf00bf1bf09ff0eb4f14f2745e7594baac73.tar.gz
fixes #2397
Diffstat (limited to 'tests/overload/tsystemcmp.nim')
-rw-r--r--tests/overload/tsystemcmp.nim4
1 files changed, 4 insertions, 0 deletions
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