Skip to content
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

Fix hasKnownMembers #14762

Merged
merged 3 commits into from Mar 24, 2022
Merged

Fix hasKnownMembers #14762

merged 3 commits into from Mar 24, 2022

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 23, 2022

As observed in #13900, hasKnownMembers gives problematic false positives. What we are
really after is a (nontrivial) upper approximation of known members. Even uninstantiated
type variables have such an approximation if their lower bound is defined and different
from Nothing.

Fixes #13900

As observed in scala#13900, hasKnownMembers gives problematic false positives. What we are
really after is a (nontrivial) upper approximation of known members. Even uninstantiated
type variables have such an approximation if their lower bound is defined and different
from Nothing.

Fixes scala#13900
@odersky
Copy link
Contributor Author

odersky commented Mar 23, 2022

Test performance please

1 similar comment
@odersky
Copy link
Contributor Author

odersky commented Mar 23, 2022

Test performance please

Turns out we cannot make TypeParamRefs have unknown members directly.
scala.concurrent.TrieMap fails if we do that.
@smarter smarter assigned odersky and unassigned smarter Mar 24, 2022
Co-authored-by: Guillaume Martres <smarter@ubuntu.com>
@odersky
Copy link
Contributor Author

odersky commented Mar 24, 2022

Test performance please

@mbovel
Copy link
Member

mbovel commented Mar 24, 2022

test performance please

@dottybot
Copy link
Member

performance test scheduled: 11 job(s) in queue, 1 running.

@dottybot
Copy link
Member

Performance test finished successfully:

Visit https://dotty-bench.epfl.ch/14762/ to see the changes.

Benchmarks is based on merging with main (a2974d9)

@odersky odersky merged commit 1168967 into scala:main Mar 24, 2022
@odersky odersky deleted the fix-13900 branch March 24, 2022 16:38
@Kordyjan Kordyjan added this to the 3.1.3 milestone Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unapplicable implicit conversion in scope incorrectly masks applicable implicit conversion in outer scope.
5 participants