-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Inconsistency between reflect Typed and #12221
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
I think this is what I encountered (quoted from gitter) (or this since I noticed a problem with the Unapply and a mix with #12222 ). I can provide the code if needed
|
@Snowflake8 does sound like it would be caused by this bug. Could you create a minimal self-contained code example that fails with your use case. This way we can ensure that everything is properly fixed. |
Remove old workaround for `Unapply`. Users may see an extra `Typed` in the trees of patterns Fixes scala#12221
Remove old workaround for `Unapply`. Users may see an extra `Typed` in the trees of patterns Fixes scala#12221
Remove old workaround for `Unapply`. Users may see an extra `Typed` in the trees of patterns Fixes scala#12221
Remove old workaround for `Unapply`. Users may see an extra `Typed` in the trees of patterns Fixes scala#12221
Remove old workaround for `Unapply`. Users may see an extra `Typed` in the trees of patterns Fixes scala#12221
@nicolasstucki You were too quick |
@Snowflake8 no problem, I will add that extra test or reference it in one of the related issues if it hits another bug. |
…t-for-#12221 Add extra regression test for #12221
Compiler version
3.0.0-RC3
Issue
Both
TypeTest
s will may match the sametpd.Typed
treeThis makes the type hierarchy unsound.
UnapplyTypeTest.unapply
only matchestpd.Typed
for historical reasons. Back when trees were separated from patterns we needed to handle this specially.Solution
UnapplyTypeTest.unapply
only matchtpd.Unapply
The text was updated successfully, but these errors were encountered: