summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-06-27 08:06:55 +0200
committerAraq <rumpf_a@web.de>2013-06-27 08:06:55 +0200
commited56b8c17372328726eb75542d6a873b279864e4 (patch)
tree86bf585996dfd7fffb33b982507e5e4e795960ec /tests
parent82ceca071710d693e1611505c9dfff7aee375045 (diff)
downloadNim-ed56b8c17372328726eb75542d6a873b279864e4.tar.gz
fixes #442
Diffstat (limited to 'tests')
-rw-r--r--tests/reject/tnicerrorforsymchoice.nim18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/reject/tnicerrorforsymchoice.nim b/tests/reject/tnicerrorforsymchoice.nim
new file mode 100644
index 000000000..bc271dcab
--- /dev/null
+++ b/tests/reject/tnicerrorforsymchoice.nim
@@ -0,0 +1,18 @@
+discard """
+  line: 18
+  errormsg: "type mismatch: got (proc (TScgi) | proc (PAsyncSocket, PStringTable, string))"
+"""
+
+#bug #442
+import scgi, sockets, asyncio, strtabs
+proc handleSCGIRequest[TScgi: TScgiState | PAsyncScgiState](s: TScgi) =
+  nil
+proc handleSCGIRequest(client: PAsyncSocket, headers: PStringTable, 
+                       input: string) =
+  nil
+
+proc test(handle: proc (client: PAsyncSocket, headers: PStringTable, 
+                        input: string), b: int) =
+  nil
+
+test(handleSCGIRequest)