Skip to content

Commit bb0ad1f

Browse files
committed
Give error when uncurried application tries to use label from result type.
1 parent 4242f3b commit bb0ad1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jscomp/ml/typecore.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3035,6 +3035,7 @@ and type_application uncurried env funct (sargs : sargs) : targs * Types.type_ex
30353035
(t1, t2)
30363036
| Tarrow (l,t1,t2,_) when Asttypes.same_arg_label l l1 && arity_ok
30373037
->
3038+
if List.length args >= max_arity then assert false;
30383039
(t1, t2)
30393040
| td ->
30403041
let ty_fun =

0 commit comments

Comments
 (0)