toutparams.nim 171 B

123456789101112131415
  1. discard """
  2. matrix: "--warningAsError:ProveInit"
  3. """
  4. {.experimental: "strictdefs".}
  5. proc foo(x: out int) =
  6. x = 1
  7. proc bar(x: out int) =
  8. foo(x)
  9. var s: int
  10. bar(s)