Nim/tests/reject/tbindtypedesc.nim
Zahary Karadjov 289c975d85 fixes #430
2013-05-12 21:55:55 +03:00

12 lines
192 B
Nim

discard """
line: 11
file: "tbindtypedesc.nim"
errormsg: "type mismatch: got (typedesc[float], string)"
"""
proc foo(T: typedesc; some: T) =
echo($some)
foo int, 4
foo float, "bad"