-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Crash in match type with wildcards when using -Xkind-projector:underscores
#21400
Comments
Maybe same issue 🤔 |
minimized record4s issue //> using options -Ykind-projector:underscores
import scala.quoted.Type
import scala.quoted.Quotes
def x[A](t: Type[A])(using Quotes): Boolean = t match
case '[_ *: _] =>
true
case _ =>
false |
mbovel
added a commit
to mbovel/dotty
that referenced
this issue
Oct 7, 2024
Always treat underscores as type bounds inside patterns, even when `ctx.settings.XkindProjector.value == "underscores"`. Fixes scala#14952 and scala#21400.
smarter
added a commit
that referenced
this issue
Oct 7, 2024
WojciechMazur
added a commit
to scala/scala3-lts
that referenced
this issue
Dec 5, 2024
Always treat underscores as type bounds inside patterns, even when `ctx.settings.XkindProjector.value == "underscores"`. Fixes scala#14952 and scala#21400. [Cherry-picked 374cd4f][modified]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
Works in 3.0.0
Fails in every other version
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: