This commit is contained in:
Zahary Karadjov 2013-05-12 21:55:55 +03:00
commit 289c975d85
2 changed files with 24 additions and 6 deletions

View file

@ -0,0 +1,12 @@
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"