summary refs log tree commit diff stats
path: root/tests/init/tlet_uninit4.nim
blob: c57d15ff872f7b177676cba5226f3c15f64f5f41 (plain) (blame)
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)