Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jan0sch opened this issue Oct 29, 2015 · 4 comments

Comments

@jan0sch
Copy link

jan0sch commented Oct 29, 2015

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. 😉

@gakuzzzz
Copy link
Member

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 :)

@jan0sch
Copy link
Author

jan0sch commented Oct 31, 2015

Thanks, I'll try that. :-)

@jan0sch
Copy link
Author

jan0sch commented Oct 31, 2015

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

@gakuzzzz
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants