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