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

Unexpected behaviour: equality of term arguments #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toinehartman
Copy link
Contributor

I would expect that the following program evaluates to "not equal". However, it evaluates to "equal".

module eq-term-args

strategies
  s(|x, x) = !"equal"
  s(|x, y) = !"not equal"

main = s(|1, 2)

This is caused by the fact that the two occurrences of x in the first strategy instance are desugared to unique names; therefore, the implied equality constraint is lost.

This PR adds a failing test that showcases the unexpected behavior.

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.

1 participant