Async macro fixes (#5739)

This commit is contained in:
Yuriy Glukhov 2017-05-16 23:09:19 +03:00 • committed by Andreas Rumpf
commit 6599cae281
3 changed files with 30 additions and 20 deletions

View file

@ -7,3 +7,12 @@ proc foo {.async.}
proc foo {.async.} =
discard
# With additional pragmas:
proc bar {.async, cdecl.}
proc bar {.async.} =
discard
proc verifyCdeclPresent(p: proc : Future[void] {.cdecl.}) = discard
verifyCdeclPresent(bar)