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
since 3.4.2, still present in main
main
object Test { type MTWithBind[X] = X match { case List[t] => t } }
With -Xprint:typer:
-Xprint:typer
type MTWithBind[X >: Nothing <: Any] = X match { case List[t @ _] => t } <: t
t should not appear in the inferred bound of the match type, since it is outside of its declaring scope.
t
Overall I'm getting increasingly uneasy about #19761. 🫤
The text was updated successfully, but these errors were encountered:
This issue was picked for the Scala Issue Spree of tomorrow, Monday, December 2nd. @dwijnand, @bracevac and @HarrisL2 will be working on it.
Sorry, something went wrong.
dwijnand
Successfully merging a pull request may close this issue.
Compiler version
since 3.4.2, still present in
main
Minimized code
Output
With
-Xprint:typer
:Expectation
t
should not appear in the inferred bound of the match type, since it is outside of its declaring scope.Overall I'm getting increasingly uneasy about #19761. 🫤
The text was updated successfully, but these errors were encountered: