当我尝试编译(几乎)直接来自Play 2.1 Docsmissing parameter type
的代码时,给出了错误response
def feedTitle(feedUrl: String) = Action {
Async {
WS.url(feedUrl).get().map { response =>
Ok("test")
}
}
}
所以我给它一个这样的类型,{response: WS.Response => ...}
但后来我得到了这个错误:
type mismatch;
found : play.libs.WS.Response => play.api.mvc.SimpleResult[String]
required: play.libs.F.Function[play.libs.WS.Response,?]