facebook / facebook/flow

Intersection should be commutative, is not.

Open
#4,492 3 comments 0 reactions 0 assignees View on GitHub
Typing: unions/intersections
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Example:

https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVAXAngBwKZgCSGeAtmALxgDeAHgFxgD81AlgCaMDOGATqwDsA5gF8RmXAQAKvODi6UaYViVKNiZMCIDc6KAFcBAYwys4AsADE4cABQBKGqjAuwtnLPmMA8gCMAVngmYABkYDJyXI4UAHxgHpEAdCpkyey6OnqGJmYWAEIAhrwOTq5uCV7hngphfoEm0XEVXMmqaRm6QA

Expected: Intersecting two types would be commutative.
Actual: Order matters.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.