Calling an async proc with invalid arguments will now fail at compile-time.
This commit is contained in:
parent
d15e67e020
commit
a1a8925692
3 changed files with 52 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import sockets, asyncio, strutils
|
||||
|
||||
proc processRequest(client: PAsyncSocket, test: string) {.async.} =
|
||||
assert test == "ahha"
|
||||
assert client != nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue