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
Based on OpenCB failure in akka/akka - build logs
akka/akka
Last good release: 3.6.0-RC1-bin-20240920-4293a45-NIGHTLY First bad release: 3.6.0-RC1-bin-20240922-22ed2fb-NIGHTLY Bisect points to b410f30
@main def Test = val members = collection.immutable.SortedSet.empty[String] members.collect { var upNumber = 0 { case m => // upNumber += 1 m } }
-- [E007] Type Mismatch Error: /Users/wmazur/projects/sandbox/test.scala:3:18 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 3 | members.collect { | ^ | Found: String => String | Required: PartialFunction[String @uncheckedVariance, Any] 4 | var upNumber = 0 5 | { 6 | case m => 7 | // upNumber += 1 8 | m 9 | } 10 | } | | longer explanation available when compiling with `-explain`
Should infer correct type a partial function instead of regular function
The text was updated successfully, but these errors were encountered:
cc @odersky @dwijnand
Sorry, something went wrong.
Revert SAM condition to what it was before
d504209
Fixes scala#21676
7bbed2b
Revert SAM condition to what it was before (#21684)
b7828ac
Fixes #21676
odersky
Successfully merging a pull request may close this issue.
Based on OpenCB failure in
akka/akka
- build logsCompiler version
Last good release: 3.6.0-RC1-bin-20240920-4293a45-NIGHTLY
First bad release: 3.6.0-RC1-bin-20240922-22ed2fb-NIGHTLY
Bisect points to b410f30
Minimized code
Output
Expectation
Should infer correct type a partial function instead of regular function
The text was updated successfully, but these errors were encountered: