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

Union pattern match failure #502

Closed
ldcouto opened this issue Feb 1, 2016 · 2 comments
Closed

Union pattern match failure #502

ldcouto opened this issue Feb 1, 2016 · 2 comments
Assignees
Labels
bug Incorrect behaviour of the tool Mergable A fix is available on a branch to merge for release
Milestone

Comments

@ldcouto
Copy link
Member

ldcouto commented Feb 1, 2016

Minimal example:

p let ({} union {}) union {} = {} in 1
= 1

See overturetool/documentation#9 for more

@ldcouto ldcouto added the bug Incorrect behaviour of the tool label Feb 1, 2016
@ldcouto ldcouto added this to the v2.3.2 milestone Feb 1, 2016
@nickbattle
Copy link
Contributor

The problem is caused by the fact that the brackets make the LHS into an expression pattern, and these were always considered to be "length 1" (ie. yielding a set with one member in this context). In fact an expression can clearly result in an arbitrary length, including zero. So the length for an expression pattern should be ANY.

@nickbattle nickbattle added the Mergable A fix is available on a branch to merge for release label Feb 1, 2016
@nickbattle
Copy link
Contributor

Now available in ncb/development.

@joey-coleman joey-coleman changed the title Union pattern match failure Union pattern match failure Feb 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behaviour of the tool Mergable A fix is available on a branch to merge for release
Projects
None yet
Development

No branches or pull requests

2 participants