Nim/tests/bind/tinvalidbindtypedesc.nim
2018-12-11 21:23:21 +01:00

10 lines
158 B
Nim

discard """
errormsg: "type mismatch: got <type float, string>"
line: 10
"""
proc foo(T: typedesc; some: T) =
echo($some)
foo int, 4
foo float, "bad"