tasync_forward.nim 266 B

12345678910111213141516171819
  1. import asyncdispatch
  2. # bug #1970
  3. proc foo {.async.}
  4. proc foo {.async.} =
  5. discard
  6. # With additional pragmas:
  7. proc bar {.async, cdecl.}
  8. proc bar {.async.} =
  9. discard
  10. proc verifyCdeclPresent(p: proc : Future[void] {.cdecl.}) = discard
  11. verifyCdeclPresent(bar)