tprocexprasstmt.nim 278 B

123456789101112131415
  1. func r(): auto =
  2. func(): int = 2
  3. doAssert r()() == 2
  4. block: # issue #11726
  5. let foo = block:
  6. var x: int
  7. proc = inc x # "identifier expected, but got '='"
  8. template paint(): untyped =
  9. proc (s: string): string = s
  10. let s = paint()
  11. doAssert s("abc") == "abc"