Skip to content

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