Skip to content

Commit 98e2cc8

Browse files
committed
fix #5165
1 parent bde114a commit 98e2cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jscomp/super_errors/super_typecore.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ let report_error env ppf = function
187187
| Expr_type_clash (
188188
(_, {desc = Tconstr (Pdot (Pdot(Pident {name = "Js"},"Fn",_),arityA,_),_,_)}) ::
189189
(_, {desc = Tconstr (Pdot (Pdot(Pident {name = "Js"},"Fn",_),arityB,_),_,_)}) :: _
190-
) ->
190+
) when arityA <> arityB ->
191191
reportJsFnArityMismatch ~arityA ~arityB ppf
192192
| Expr_type_clash (
193193
(_, {desc = Tconstr (Pdot (Pdot(Pident {name = "Js_OO"},"Meth",_),a,_),_,_)}) ::

0 commit comments

Comments
 (0)