template `<`*(fn: untyped, attrs: tuple) = discard
proc somefn* = discard
`<`(somefn, ()) # <= works
<(somefn, ()) # <= doesn't
Run
Error
Error: type mismatch: got <(proc (){.noSideEffect, gcsafe, locks: 0.},
tuple[])>
but expected one of:
proc `<`[T: tuple](x, y: T): bool
first type mismatch at position: 2
missing parameter: y
template `<`(fn: untyped; attrs: tuple)
first type mismatch at position: 2
missing parameter: attrs
20 other mismatching symbols have been suppressed; compile with
--showAllMismatches:on to see them
expression: <(somefn, ())
Run