mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
19 lines
266 B
Nim
19 lines
266 B
Nim
|
|
import asyncdispatch
|
|
|
|
# bug #1970
|
|
|
|
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)
|