We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.6.2-RC1
import scala.math.Numeric.Implicits.given val foo: [T: Numeric] => (t: T) => T = [T] => _ * Numeric[T].fromInt(3)
-- [E040] Syntax Error: -------------------------------------------------------- 2 |val foo: [T: Numeric] => (t: T) => T = [T] => _ * Numeric[T].fromInt(3) | ^ | ']' expected, but ':' found
should just work (right now you need to import scala.language.experimental.modularity)
scala.language.experimental.modularity
The text was updated successfully, but these errors were encountered:
e89a66c
Make context bounds for poly functions a standard feature (#22019)
88f4a93
closes #22017 [Cherry-picked e89a66c]
Make context bounds for poly functions a standard feature (scala#22019)
f6b50be
closes scala#22017
f749d37
closes scala#22017 [Cherry-picked e89a66c]
f1ad9a9
Successfully merging a pull request may close this issue.
Compiler version
3.6.2-RC1
Minimized code
Output
Expectation
should just work (right now you need to import
scala.language.experimental.modularity
)The text was updated successfully, but these errors were encountered: