-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Spurious missing TypeTest instance for a match type #13433
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
Comments
Same happens with |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 2, 2021
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 2, 2021
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 7, 2021
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 9, 2021
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 8, 2021
olsdavis
pushed a commit
to olsdavis/dotty
that referenced
this issue
Apr 4, 2022
EugeneFlesselle
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 14, 2024
Tests scala#13433 with a classpath dependency
EugeneFlesselle
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 14, 2024
Tests scala#13433 with a classpath dependency
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.0.1
Minimized code
https://scastie.scala-lang.org/R5e5jgGkSJ6fU7WTy4eqQw
Output
Inside the body of
patternMatch
and subsequent failing type test:However, the version of the code in
patternMatchWithAlias
works correctly and produces no warning. The only difference is a tautological aliasand matching on the alias instead of the match type.
Expectation
Expected both versions to work and to produce no spurious warnings:
The text was updated successfully, but these errors were encountered: