mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
* clean up some test categories * mention exact slice issue * magics into system * move trangechecks into overflow * move tmemory to system * try fix CI * try fix CI * final CI fix
24 lines
768 B
Nim
24 lines
768 B
Nim
discard """
|
|
errormsg: "type mismatch: got <proc (s: TScgi: ScgiState or AsyncScgiState) | proc (client: AsyncSocket, headers: StringTableRef, input: string){.noSideEffect, gcsafe.}>"
|
|
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)
|