t2v / play2-auth

Play2.x Authentication and Authorization module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues if using unicode arrows (overloaded method value AsyncStack with alternatives)

jan0sch opened this issue · comments

Hi,

I just tried to compile a play project using play2-auth using unicode arrows () and the compiler bailed out like this:

overloaded method value AsyncStack with alternatives:
  (f: jp.t2v.lab.play2.stackc.RequestWithAttributes[play.api.mvc.AnyContent] 
    => scala.concurrent.Future[play.api.mvc.Result])play.api.mvc.Action[play.api.mvc.AnyContent] <and>
  (params: jp.t2v.lab.play2.stackc.Attribute[_]*)(f: jp.t2v.lab.play2.stackc.RequestWithAttributes[play.api.mvc.AnyContent] 
    => scala.concurrent.Future[play.api.mvc.Result])play
.api.mvc.Action[play.api.mvc.AnyContent] <and>
  [A](p: play.api.mvc.BodyParser[A], params: jp.t2v.lab.play2.stackc.Attribute[_]*)(f: jp.t2v.lab.play2.stackc.RequestWithAttributes[A] => scala.concurrent.Future[play.api.mvc.
Result])play.api.mvc.Action[A]
cannot be applied to ((AccountAdministration.this.AuthorityKey.type, models.AdminAuthority.type))
  def add = AsyncStack(AuthorityKey → AdminAuthority) {
            ^

Is there a way to make this work? Everything is fine if we stick to using -> so I consider this a low priority issue. But it would be neat if it worked. 😉

Hi,

It may be stackable-controller's issue.

The -> method is defined here because of more type safety. t2v/stackable-controller#13

If you need , you can send a PR to stackable-controller :)

Thanks, I'll try that. :-)

I made a PR for the stackable-controller: t2v/stackable-controller#24

thanks! play2-auth 0.14.2 has been released that contains it.