Skip to content

Commit 2cc3753

Browse files
committed
cleanup
1 parent f23b375 commit 2cc3753

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

jscomp/ml/typecore.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,6 @@ and type_pat_aux ~constrs ~labels ~no_existentials ~mode ~explode ~env
15061506
| Ppat_type lid when Variant_coercion.has_res_pat_variant_spread_attribute sp.ppat_attributes ->
15071507
let (path, p, ty) = build_or_pat_for_variant_spread !env loc lid expected_ty in
15081508
Ctype.subtype !env ty expected_ty ();
1509-
assert (constrs = None);
15101509
k { p with pat_extra =
15111510
(Tpat_type (path, lid), loc, sp.ppat_attributes) :: p.pat_extra }
15121511
| Ppat_type lid ->

jscomp/ml/variant_coercion.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,3 @@ let has_res_pat_variant_spread_attribute attrs =
157157
|> List.find_opt (fun (({txt}, _) : Parsetree.attribute) ->
158158
txt = "res.patVariantSpread")
159159
|> Option.is_some
160-
161-

0 commit comments

Comments
 (0)