t2v / play2-auth

Play2.x Authentication and Authorization module
Apache License 2.0
608 stars 138 forks source link

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

Closed jan0sch closed 8 years ago

jan0sch commented 9 years ago

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. :wink:

gakuzzzz commented 9 years ago

Hi,

It may be stackable-controller's issue.

The -> method is defined here because of more type safety. https://github.com/t2v/stackable-controller/pull/13

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

jan0sch commented 9 years ago

Thanks, I'll try that. :-)

jan0sch commented 9 years ago

I made a PR for the stackable-controller: https://github.com/t2v/stackable-controller/pull/24

gakuzzzz commented 8 years ago

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