mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 12:07:51 +00:00
The old implementation relied on the (now?) wrong assumption that default-valued parameters can only be placed after the required ones. Fixes #8683
12 lines
189 B
Nim
12 lines
189 B
Nim
discard """
|
|
output: "1"
|
|
"""
|
|
|
|
proc foo[T](bar: proc (x, y: T): int = system.cmp, baz: int) =
|
|
echo "1"
|
|
|
|
proc foo[T](bar: proc (x, y: T): int = system.cmp) =
|
|
echo "2"
|
|
|
|
foo[int](baz = 5)
|