Nim/tests/bind/tinvalidbindtypedesc.nim
Timothee Cour e40ff24c23
typeToString: type float => typedesc[float] (#17011)
* typeToString: type float => typedesc[float]

* fixup

* fix tests
2021-02-12 17:10:20 +01:00

10 lines
163 B
Nim

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