-
Notifications
You must be signed in to change notification settings - Fork 464
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
Further simplification of untagged variant output #7142
Comments
Merged
And this: |
cristianoc
added a commit
that referenced
this issue
Nov 7, 2024
cristianoc
added a commit
that referenced
this issue
Nov 8, 2024
cristianoc
added a commit
that referenced
this issue
Nov 8, 2024
Fixes #7142 - x ? y : false --> x && y - x ? false : y --> !x && y - push negation inside when it leads to simplification
cristianoc
added a commit
that referenced
this issue
Nov 10, 2024
Fixes #7142 - x ? y : false --> x && y - x ? false : y --> !x && y - push negation inside when it leads to simplification
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Followup to #7141.
https://github.com/rescript-lang/rescript-compiler/blob/43d2bbf33fd0d657591aeea719b35a1c316ed77b/tests/tests/src/core/Core_NullableTests.mjs#L10
Could be simplified to
tNull === null
.https://github.com/rescript-lang/rescript-compiler/blob/43d2bbf33fd0d657591aeea719b35a1c316ed77b/tests/tests/src/core/Core_NullableTests.mjs#L21
Could be simplified to
tUndefined === undefined
.https://github.com/rescript-lang/rescript-compiler/blob/43d2bbf33fd0d657591aeea719b35a1c316ed77b/tests/tests/src/core/Core_NullableTests.mjs#L32
Could be simplified to
tValue === "hello"
.The text was updated successfully, but these errors were encountered: