-
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
Bound TypeRepr by Matchable in Quotes #21377
Conversation
Is that not intended? Can we safely match on |
Yes, we can safely match over scala3/library/src/scala/quoted/Quotes.scala Line 2811 in 1913367
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you!
We might need to go through some other types in Quotes.scala like ImplicitSearchResult, Tree, even some TypeRepr subtypes like AndOrType and also add Matchable
there. I'll try to prepare an issue for that and fix it later today.
I agree, I'm sure there are some other types we need to bind but I didn't want to include these changes here as it closes a specific issue. We don't need to do anything more for subtypes of scala3/library/src/scala/quoted/Quotes.scala Line 2997 in b64afad
For scala3/library/src/scala/quoted/Quotes.scala Line 283 in b64afad
scala3/library/src/scala/quoted/Quotes.scala Line 3711 in b64afad
Nevertheless, a check is welcome. |
Ah, good point! |
Closes #21282