fixes #2397
This commit is contained in:
parent
178a85cd25
commit
019faf00bf
2 changed files with 26 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue