Skip to content

Commit f3f1a61

Browse files
committed
Fix nested inferred application.
1 parent 4b9a8b3 commit f3f1a61

File tree

7 files changed

+23
-35
lines changed

7 files changed

+23
-35
lines changed

jscomp/gentype_tests/typescript-react-example/src/Hooks.res.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/ml/translcore.ml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,14 +1036,8 @@ and transl_cases_try cases =
10361036
List.map transl_case_try cases
10371037

10381038
and transl_apply ?(inlined = Default_inline) ?(uncurried_partial_application=None) lam sargs loc =
1039-
let lapply funct args =
1040-
match funct with
1041-
(* Attention: This may not be what we need to change the application arity*)
1042-
| Lapply ap -> Lapply { ap with ap_args = ap.ap_args @ args; ap_loc = loc }
1043-
| lexp ->
1044-
Lapply
1045-
{ ap_loc = loc; ap_func = lexp; ap_args = args; ap_inlined = inlined }
1046-
in
1039+
let lapply ap_func ap_args =
1040+
Lapply { ap_loc = loc; ap_func; ap_args; ap_inlined = inlined } in
10471041
let rec build_apply lam args = function
10481042
| (None, optional) :: l ->
10491043
let defs = ref [] in

jscomp/test/ari_regress_test.js

Lines changed: 5 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/arity_deopt.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/event_ffi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/random_test.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/test_demo.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)