This commit is contained in:
Araq 2015-03-25 11:50:38 +01:00
commit 019faf00bf
2 changed files with 26 additions and 16 deletions

View file

@ -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