Skip to content

Commit e43b577

Browse files
committed
Test: see what removing opaqueFullApply does
The effect is that a bunch of applications are treated as curried applications.
1 parent 75afa9c commit e43b577

File tree

330 files changed

+5054
-5567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+5054
-5567
lines changed

jscomp/core/lam_compile.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ and compile_prim (prim_info : Lam.prim_info)
15381538
(*
15391539
either a getter {[ x #. height ]} or {[ x ## method_call ]}
15401540
*)
1541-
assert (not setter);
1541+
(* assert (not setter); *)
15421542
15431543
match
15441544
compile_lambda { lambda_cxt with continuation = NeedValue Not_tail } obj

jscomp/ml/typecore.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ and type_expect_ ?type_clash_context ?in_function ?(recarg=Rejected) env sexp ty
21592159
exp_type;
21602160
exp_attributes = [];
21612161
exp_env = env } in
2162-
let apply_internal name e =
2162+
let _apply_internal name e =
21632163
let lid:Longident.t = Ldot (Ldot (Lident "Js", "Internal"), name) in
21642164
let (path, desc) = Env.lookup_value lid env in
21652165
let id = mk_exp (Texp_ident(path, {txt=lid; loc=Location.none}, desc)) desc.val_type in
@@ -2178,7 +2178,7 @@ and type_expect_ ?type_clash_context ?in_function ?(recarg=Rejected) env sexp ty
21782178
| _ -> false in
21792179

21802180
if fully_applied && not is_primitive then
2181-
rue (apply_internal "opaqueFullApply" (mk_apply funct args))
2181+
rue (mk_apply funct args)
21822182
else
21832183
rue (mk_apply funct args)
21842184
| Pexp_match(sarg, caselist) ->

jscomp/test/DerivingAccessorsCurried.js

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

jscomp/test/DerivingAccessorsUncurried.js

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

jscomp/test/Import.js

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

jscomp/test/UncurriedAlways.js

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

jscomp/test/UncurriedExternals.js

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

jscomp/test/UntaggedVariants.js

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

jscomp/test/a_filename_test.js

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

jscomp/test/a_recursive_type.js

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

jscomp/test/a_scope_bug.js

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

jscomp/test/ari_regress_test.js

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

jscomp/test/arith_lexer.js

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

0 commit comments

Comments
 (0)