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
Special case uncurried fun with 1 arg of unit type (#6131)
* Specia case uncurried fun with 1 arg of unit type
* Update artifacts.txt
* v2
* back
* back
* Update artifacts.txt
* simplify
* Seems to work with minimal changes.
* Update artifacts.txt
* Pass the information oneUnitArg lower down the compiler stack.
Instead of removing the arguments on the lambda layer, pass the information down via the lambda layer using the additional field oneUnitArg.
When this reaches the Lam layer with ocaml_fun in Lam_compile, only then remove the param.
This ensures the code emitted is the same, except for the parameter.
* Update CHANGELOG.md
Copy file name to clipboardexpand all lines: CHANGELOG.md
+3
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@
12
12
13
13
# 11.0.0-alpha.2 (Unreleased)
14
14
15
+
#### :bug: Bug Fix
16
+
- Special case generation of uncurried functions with 1 argument of unit type so they don't take a parameter. https://github.com/rescript-lang/rescript-compiler/pull/6131
17
+
15
18
## :rocket: Main New Features
16
19
17
20
- Add support for type coercion `:>` for records. https://github.com/rescript-lang/rescript-compiler/pull/5721
0 commit comments