summary refs log tree commit diff stats
path: root/tests/bind/tnicerrorforsymchoice.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bind/tnicerrorforsymchoice.nim')
-rw-r--r--tests/bind/tnicerrorforsymchoice.nim23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/bind/tnicerrorforsymchoice.nim b/tests/bind/tnicerrorforsymchoice.nim
deleted file mode 100644
index 684b83239..000000000
--- a/tests/bind/tnicerrorforsymchoice.nim
+++ /dev/null
@@ -1,23 +0,0 @@
-discard """
-  errormsg: "type mismatch: got <proc (s: TScgi: ScgiState or AsyncScgiState) | proc (client: AsyncSocket, headers: StringTableRef, input: string){.noSideEffect, gcsafe, locks: 0.}>"
-  line: 23
-"""
-
-# Fake ScgiState objects, from now-deprecated scgi module
-type
-  ScgiState* = object of RootObj ## SCGI state object
-  AsyncScgiState* = object of RootObj ## SCGI state object
-
-#bug #442
-import asyncnet, strtabs
-proc handleSCGIRequest[TScgi: ScgiState | AsyncScgiState](s: TScgi) =
-  discard
-proc handleSCGIRequest(client: AsyncSocket, headers: StringTableRef,
-                       input: string) =
-  discard
-
-proc test(handle: proc (client: AsyncSocket, headers: StringTableRef,
-                        input: string), b: int) =
-  discard
-
-test(handleSCGIRequest)