-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Match Types: implement cantPossiblyMatch #5996
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c1b7e84
Minor TypeTestsCasts refactoring
OlivierBlanvillain 6e39fcb
Rename evalOnce to letBind
OlivierBlanvillain eef623a
Rename cmp to typeComparer
OlivierBlanvillain 6755f52
Remove reduceParallel
OlivierBlanvillain 88cfb7e
Fix spacing for TypeComparer comments
OlivierBlanvillain bb1515e
Flag ChildrenQueried in hasAnonymousChild
OlivierBlanvillain f79d937
Implement cantPossiblyMatch
OlivierBlanvillain 60d0e20
Replace Space.inhabited by typeComparer.intersecting
OlivierBlanvillain d1180cc
Move refineUsingParent to Typer
OlivierBlanvillain b0c1e7b
Check inhabitation of children in Space
OlivierBlanvillain c3d23fe
Only trust isSameType for fully instanciated types
OlivierBlanvillain 4f934ad
Use derivesFrom instead of isSubType for classes
OlivierBlanvillain 80c25e3
Handle type parameters using symbol.is(TypeParam)
OlivierBlanvillain ab74827
Fix AppliedType logic
OlivierBlanvillain 1df0d8b
Revert "Rename evalOnce to letBind"
OlivierBlanvillain 8827eff
Revert "Flag ChildrenQueried in hasAnonymousChild"
OlivierBlanvillain ffa8acf
Address review
OlivierBlanvillain e7f6049
Move refineUsingParent to TypeOps
OlivierBlanvillain f4df58d
Factor out cov. test and use it in the inv. case
OlivierBlanvillain ea04343
Update inhabited check in Space
OlivierBlanvillain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It seems that a nested non-inhabitable intersection type does not necessarily mean the outer type is non-inhabited, just as
Nothing
does not implyF[Nothing]
is non-inhabited..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.
Good point, I've updated that check to be more conservative while traversing
refined
.