Merge pull request #2580 from def-/test-fixes-4

Fix expected tester messages
This commit is contained in:
Andreas Rumpf
2015-04-21 13:54:41 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1,17 +1,17 @@
discard """
line: 18
errormsg: "type mismatch: got (proc (TScgi) | proc (AsyncSocket, StringTableRef, string)"
errormsg: "type mismatch: got (proc (s: TScgi) | proc (client: AsyncSocket, headers: StringTableRef, input: string){.gcsafe, locks: 0.}"
"""
#bug #442
import scgi, sockets, asyncio, strtabs
proc handleSCGIRequest[TScgi: ScgiState | AsyncScgiState](s: TScgi) =
discard
proc handleSCGIRequest(client: AsyncSocket, headers: StringTableRef,
proc handleSCGIRequest(client: AsyncSocket, headers: StringTableRef,
input: string) =
discard
proc test(handle: proc (client: AsyncSocket, headers: StringTableRef,
proc test(handle: proc (client: AsyncSocket, headers: StringTableRef,
input: string), b: int) =
discard

View File

@@ -1,6 +1,6 @@
discard """
line: 12
errormsg: "type mismatch: got (proc (int){.closure, gcsafe, locks: 0.})"
errormsg: "type mismatch: got (proc (x: int){.closure, gcsafe, locks: 0.})"
"""
proc ugh[T](x: T) {.closure.} =