Skip to content

Commit a29b675

Browse files
committed
cleanup
1 parent 1998c99 commit a29b675

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
@@ -1516,7 +1516,6 @@ and type_pat_aux ~constrs ~labels ~no_existentials ~mode ~explode ~env
15161516
| Ppat_type lid when Variant_coercion.has_res_pat_variant_spread_attribute sp.ppat_attributes ->
15171517
let (path, p, ty) = build_or_pat_for_variant_spread !env loc lid expected_ty in
15181518
Ctype.subtype !env ty expected_ty ();
1519-
assert (constrs = None);
15201519
k { p with pat_extra =
15211520
(Tpat_type (path, lid), loc, sp.ppat_attributes) :: p.pat_extra }
15221521
| Ppat_type lid ->

jscomp/ml/variant_coercion.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,3 @@ let has_res_pat_variant_spread_attribute attrs =
208208
|> List.find_opt (fun (({txt}, _) : Parsetree.attribute) ->
209209
txt = "res.patVariantSpread")
210210
|> Option.is_some
211-
212-

0 commit comments

Comments
 (0)