tlet_uninit4.nim 165 B

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