Scala implicit declaration never used week warning
已回答
After updating to 2016.3.2 a get week warning Declaration is never used.
This is Scala, PlayFramework an it's quite common to use this kind of syntax, before this version this didnt show
def list = IsAuthenticated { user => implicit request => //Week warning !
Trait Definition:
def IsAuthenticated(f: => User => Request[AnyContent] => Result) = Security.Authenticated(username , onUnauthorized) { username =>
If i change implicit request to implicit _ (default autocorrection action) trait is not satisfied !
请先登录再写评论。
Please submit a bug at https://youtrack.jetbrains.com/issues/SCL.