t17177.nim 302 B

1234567891011
  1. import std/asyncjs
  2. proc fn1(n: int): Future[int] {.async.} = return n
  3. proc main2() =
  4. proc fn2(n: int): Future[int] {.async.} = return n
  5. proc main3(a: auto) =
  6. proc fn3(n: int): Future[int] {.async.} = return n
  7. proc main4() {.async.} =
  8. proc fn4(n: int): Future[int] {.async.} = return n
  9. discard