Async macro fixes (#5739)
This commit is contained in:
parent
8d3f477fad
commit
6599cae281
3 changed files with 30 additions and 20 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue