You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c8aff0a
Browse filesBrowse the repository at this point in the historyBrowse files
[12.x] Fix integer range patterns at int32 boundaries (#8858)
* Backport integer range boundary fixes to v12
Backport #8717 to maintenance/12.x. Adapt matching calls and integer constant unit tests to the v12 Lambda representation, and regenerate the runtime snapshot with the v12 compiler.
(cherry picked from commit 52783c8)
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
* Use legacy v12 changelog for the integer boundary backport
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
---------
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@
15
15
#### :bug: Bug fix
16
16
17
17
- Fix integer range patterns, including nested record and exception patterns, incorrectly matching values below the range. https://github.com/rescript-lang/rescript/pull/8714
18
+
- Fix integer range patterns at int32 boundaries and wrapped nondecimal patterns matching incorrect values. https://github.com/rescript-lang/rescript/pull/8717https://github.com/rescript-lang/rescript/pull/8858
19
+
- Integer patterns that alias the same int32 value (e.g. `0xFFFF_FFFF` and `-1`) may now produce unused-case warnings. https://github.com/rescript-lang/rescript/pull/8717https://github.com/rescript-lang/rescript/pull/8858
0 commit comments