tdomulttest.nim 263 B

123456789101112131415161718
  1. discard """
  2. output: "555\ntest\nmulti lines\n99999999\nend"
  3. """
  4. proc foo(bar, baz: proc (x: int): int) =
  5. echo bar(555)
  6. echo baz(99999999)
  7. foo do (x: int) -> int:
  8. return x
  9. do (x: int) -> int:
  10. echo("test")
  11. echo("multi lines")
  12. return x
  13. echo("end")