1 2 3 4 5 6 7 8 9 10 11 12
discard """ errormsg: "type mismatch: got <string>" """ {.experimental: "strictDefs".} proc foo(x: var string) = echo x proc bar() = let x: string foo(x)