-
Notifications
You must be signed in to change notification settings - Fork 326
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
Intersection types & type checks #11600
Merged
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
c0c2fc5
Splitting types in EnsoMultiValue to methodDispatchTypes and the rest
JaroslavTulach c780c37
Merging with latest chances in develop
JaroslavTulach 515e134
Don't expose EnsoMultiValue methods directly
JaroslavTulach d0460a4
TypeOf UnresolvedConstructor and UnresolvedSymbol test
JaroslavTulach a101fe6
Merge branch 'wip/jtulach/UseTypeOfNode11482' into wip/jtulach/Comple…
JaroslavTulach 4e08d8f
UnsupportedMessageException.create accepts only AbstractTruffleException
JaroslavTulach acebbc1
Unwrap EnsoMultiValue before composing new EnsoMultiValue.create
JaroslavTulach af85b11
Avoid double wrapping test
JaroslavTulach ba5953f
Only consider booleans up to methodDispatchTypes
JaroslavTulach c2d1911
EqualsMultiValueTest
JaroslavTulach 11f8ebc
Two unit tests showing a difference between success and failure
JaroslavTulach 0278257
Special EqualsNode for EnsoMultiValue
JaroslavTulach 720f644
Primitive interop types are mutually exclusive - we need to use one f…
JaroslavTulach ebaf492
Merge remote-tracking branch 'origin/develop' into wip/jtulach/Comple…
JaroslavTulach b5fc062
Interop value cannot be both isString and isNumber
JaroslavTulach 02ec775
Handle EnsoMultiValue in a special way
JaroslavTulach 57da6eb
Base EnsoMultiValue.equals on findAllTypesOrNull
JaroslavTulach 3d048be
Documenting the example of Text and extra Integer equality check
JaroslavTulach be5dbe8
Don't consider extra multi value types in equals
JaroslavTulach 0a81038
Note in the changelog
JaroslavTulach 9fc4bb4
No need for StructsLibrary hack anymore
JaroslavTulach 3a09a8d
No changes in GetFieldNode needed
JaroslavTulach 20973d0
Intersection type and additional conversions tests
JaroslavTulach ce4c738
Verify dispatch of methods behaves as expected
JaroslavTulach a6ff51b
Only consider methodDispatchTypes for from conversions
JaroslavTulach 957b3eb
Additional multi value tests
Akirathan dc490cf
Stream.of.anyMatch
JaroslavTulach d3102ad
Cleaning up allocated context
JaroslavTulach 57eaf4a
Let converted by the variable name
JaroslavTulach 9929fe8
Finishing documentation sentence
JaroslavTulach f5fbcf4
Otherwise extract value of type
JaroslavTulach ca0dd9a
Test also equality with Hi
JaroslavTulach 2f72704
Send multi value as a method argument test
JaroslavTulach d1172a9
Merge remote-tracking branch 'origin/develop' into wip/jtulach/Comple…
JaroslavTulach f386c7b
All types state for type check nodes
JaroslavTulach 7db299b
Documenting behavior of intersection types
JaroslavTulach 1167b52
Documenting the converting type check
JaroslavTulach 6b3b4d6
Example of failing conversions
JaroslavTulach 52038f7
Verify case of on multi value
JaroslavTulach 9eaa742
Note about #11600 in CHANGELOG.md belongs to Next Next Release
JaroslavTulach d1cbc8d
Radek's comments to Intersection Types documentation
radeusgd 77619ab
Open to subclasses
JaroslavTulach 91987ca
Multi value == is not transitive
JaroslavTulach 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 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
Oops, something went wrong.
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.
Pattern matching on type on first value of a
EnsoMultiValue
works, but we want to match on other values as well: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.
EnsoMultiValue
ignores 2nd & co. types #11828There 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.
These tests look great