11 lines
164 B
Nim
11 lines
164 B
Nim
discard """
|
|
line: 11
|
|
errormsg: "type mismatch: got (typedesc[float], string)"
|
|
"""
|
|
|
|
proc foo(T: typedesc; some: T) =
|
|
echo($some)
|
|
|
|
foo int, 4
|
|
foo float, "bad"
|
|
|