Calling an async proc with invalid arguments will now fail at compile-time.

This commit is contained in:
Dominik Picheta 2013-07-21 14:28:02 +01:00
commit a1a8925692
3 changed files with 52 additions and 0 deletions

View file

@ -1,4 +1,5 @@
import sockets, asyncio, strutils
proc processRequest(client: PAsyncSocket, test: string) {.async.} =
assert test == "ahha"
assert client != nil