Fixes #5995
This commit is contained in:
parent
d947753523
commit
58eae1171d
3 changed files with 5 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue