Skip to content

Fix for UnionType - #857

Merged
Gabriella439 merged 2 commits into
dhall-lang:masterfrom
mstksg:union-type-fix
Mar 16, 2019
Merged

Gabriella439 merged 2 commits into
dhall-lang:masterfrom
mstksg:union-type-fix

Conversation

@mstksg

@mstksg mstksg commented Mar 16, 2019

Copy link
Copy Markdown
Contributor

I noticed that I used the wrong type of equality for union subtypes for union. This causes the Type to falsely reject situations where the "other branches" of a union lit are what are expected, but are not in a normalized form. Using judgmentallyEqual gives the proper equality and gets rid of false negatives when testing for equality.

@Gabriella439
Gabriella439 merged commit 35513e7 into dhall-lang:master Mar 16, 2019
@Gabriella439

Copy link
Copy Markdown
Collaborator

Good catch! 🙂

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.

2 participants