1
コンパイルすることができない。http://www.playframework.org/documentation/2.0/ScalaFormsは、サンプルコードがある:確認( "..."、{ケース(A、B)=> ..})PLAY2のdocから
val loginForm = Form(
tuple(
"email" -> nonEmptyText,
"password" -> text
) verifying("Invalid user name or password", {
case (e, p) => User.authenticate(e,p).isDefined
})
)
しかし
Multiple markers at this line
- missing parameter type for expanded function The argument types of an anonymous
function must be fully known. (SLS 8.5) Expected type was: ?
それのように書いているべきである:私のプレイのバージョンが最新play2.1-SNAPSHOT(2012-03-18)である
verifying("Invalid user name or password", params => params match {
case (e, p) => User.authenticate(e,p).isDefined
}
エラーメッセージがある、コンパイルすることはできません。
ドキュメントに何か問題がありますか、何か迷っていますか?
ありがとうございますが、私はそれを変更する権限を持っていないようです。 – Freewind
[github](https://github.com/playframework/Play20/wiki)で変更することができます –
ちょうどそこに修正しました – Freewind