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
Polymorphic function parameter types not inferred #6892
Comments
While the error message is weird, this is a feature request (which I'm planning to implement eventually) not a bug, so labelling it as such. |
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 1, 2019
Pointed out in scala#6892.
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 1, 2019
The first was pointed out in scala#6892.
One-liner fix in #7654. |
The inference will be extremely useful if it supports implicit parameters as well. type F = [A, B] => quoted.Expr[_ <: A] => (given quoted.Type[A]) => B
val f: F = { a =>
a
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
minimized code
Weirdly, the error is reported as a "Syntax Error":
The text was updated successfully, but these errors were encountered: