mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
* draft for let daa * patch * fixes bugs * errors for global let variable reassignments * checkpoint * out param accepts let * add more tests * add documentation * merge tests
13 lines
165 B
Nim
13 lines
165 B
Nim
discard """
|
|
errormsg: "type mismatch: got <string>"
|
|
"""
|
|
|
|
{.experimental: "strictDefs".}
|
|
|
|
proc foo(x: var string) =
|
|
echo x
|
|
|
|
proc bar() =
|
|
let x: string
|
|
foo(x)
|