Skip to content

Instantly share code, notes, and snippets.

@shomah4a
Created November 3, 2011 03:38
Show Gist options
  • Save shomah4a/1335714 to your computer and use it in GitHub Desktop.
Save shomah4a/1335714 to your computer and use it in GitHub Desktop.
なんとなくこんなことしてた
class Request()
{
}
class Response()
{
}
type WSGIApp = { def apply(req: Request): Response}
def test(app: WSGIApp) =
{
println("hello, world")
}
def app(aaa: Request): Response =
{
new Response
}
class Test()
{
def apply(aaa: Request): Response =
{
new Response
}
}
test(app _)
test(new Test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment