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

Type parameters' bounds are not preserved in generated code #29

Closed
gneuvill opened this issue Apr 12, 2017 · 2 comments
Closed

Type parameters' bounds are not preserved in generated code #29

gneuvill opened this issue Apr 12, 2017 · 2 comments

Comments

@gneuvill
Copy link
Contributor

static <A,Z> Try0<A,Z> asTry0(__<__<Try0.µ,A>,Z> hkt) {
    return (Try0<A,Z>) hkt;
  }

That doesn't compile. The Z parameter is not within its bound : it should be Z extends Exception.

@jbgi
Copy link
Member

jbgi commented Apr 13, 2017

Do you want to release 0.9.3 with this fix or wait for #14 to be resolved ? If you prefer a 0.9.3 release right away just push a v0.9.3 tag and I will promote the resulting snapshot as release on maven central.

@gneuvill
Copy link
Contributor Author

It can wait, as far as I am concerned ; I stumbled upon it while annotating functionaljava 's types with hkt interfaces. I intend to make a pull request (on fj) with this but not in the coming days...

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