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
From < 3.4.2 to >= 3.4.2
object Test { type MT[X] = X match { case Int => String } def unboundUnreducibleSig[X](x: X): MT[X] = ??? }
With -Xprint:erasure:
-Xprint:erasure
With Scala 3.4.1:
def unboundUnreducibleSig(x: Object): Object = ???()
With Scala 3.4.2:
def unboundUnreducibleSig(x: Object): String = ???()
We should not have broken binary and TASTy compatibility for the exact same source code.
IMO we need to revert #19761 ASAP. This is the most egregious of a list of issues with it, such as #21256 and regressions like #21013.
The text was updated successfully, but these errors were encountered:
Revert "Approximate MatchTypes with lub of case bodies, if non-recurs…
bbfa7bc
…ive" in 3.4.3 (#21268) Reverts #19761 in 3.4.3-RC1 as discussed in #21258 and accepted by the core compiler team.
6eac278
…ive" in 3.5.0 (#21266) Reverts #19761 in 3.5.0-RC6 as discussed in #21258 and accepted by the core compiler team.
299c0b7
…ive" in 3.5.1 (#21267) Reverts #19761 in 3.5.1-RC2 as discussed in #21258 and accepted by the core compiler team.
I need to add a migration warning, indicating the upper bound change.
Sorry, something went wrong.
15a0d05
dwijnand
sjrd
Successfully merging a pull request may close this issue.
Compiler version
From < 3.4.2 to >= 3.4.2
Minimized code
Output
With
-Xprint:erasure
:With Scala 3.4.1:
With Scala 3.4.2:
Expectation
We should not have broken binary and TASTy compatibility for the exact same source code.
IMO we need to revert #19761 ASAP. This is the most egregious of a list of issues with it, such as #21256 and regressions like #21013.
The text was updated successfully, but these errors were encountered: