Files
Nim/tests/errmsgs/t13736_generic.nim

10 lines
130 B
Nim

discard """
errormsg: "cannot infer the return type of 'foo'"
line: 6
"""
proc foo[T](x: T): auto =
foo(x)
discard foo(1)