mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
Fixes #5995
This commit is contained in:
@@ -51,5 +51,8 @@ proc main() =
|
||||
|
||||
var builder = newBuilder()
|
||||
|
||||
# Test {.async.} pragma with do notation: #5995
|
||||
builder.client = newClient("builder") do(client: Client, msg: JsonNode) {.async.}:
|
||||
await onMessage(builder, msg)
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user