teffects10.nim 159 B

12345678910111213
  1. discard """
  2. action: compile
  3. """
  4. # https://github.com/nim-lang/Nim/issues/15495
  5. proc f() {.raises: [].} =
  6. var a: proc ()
  7. var b: proc ()
  8. swap(a, b)
  9. f()