adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
531 stars 125 forks source link

Fix cgi.d unittest compile error: #387

Closed quickfur closed 1 year ago

quickfur commented 1 year ago

To fix this error when compiling with -unittest:

arsd/cgi.d(565): Error: constructor `arsd.cgi.CgiTester.this(void function(Cgi) requestHandler)` is not callable using argument types `(void delegate(Cgi cgi) pure nothrow @nogc @safe)`
arsd/cgi.d(565):        cannot pass argument `&requestHandler` of type `void delegate(Cgi cgi) pure nothrow @nogc @safe` to parameter `void function(Cgi) requestHandler`
adamdruppe commented 1 year ago

This works but I think it is actually supposed to accept either nowdays so let me check that.

quickfur commented 1 year ago

Guess we can close this now?