summary refs log tree commit diff stats
path: root/tests/lookups/tinvalidbindtypedesc.nim
blob: 1c71c8dafc369b4580d4d591590181657858561a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
  errormsg: "type mismatch: got <typedesc[float], string>"
  line: 10
"""

proc foo(T: typedesc; some: T) =
  echo($some)

foo int, 4
foo float, "bad"