Skip to content

Commit 33fb39b

Browse files
committed
wip!
1 parent fe1bc33 commit 33fb39b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ecInductive.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ let rec check_positivity_in_decl fct p decl ident =
120120
match decl.tyd_type with
121121
| Concrete ty -> [ ty ]
122122
| Abstract _ ->
123-
(* Abstract types cannot be polymorphic so this is unreachable for now *)
124123
raise (NonPositive (AbstractTypeRestriction p))
125124
| Datatype { tydt_ctors } -> List.flatten @@ List.map snd tydt_ctors
126125
| Record (_, tys) -> List.map snd tys
@@ -130,8 +129,7 @@ let rec check_positivity_in_decl fct p decl ident =
130129
(** Ensures all occurrences of type variable [ident] are positive in type [ty] *)
131130
and check_positivity_ident fct p params ident ty =
132131
match ty.ty_node with
133-
| Tglob _ | Tunivar _ -> assert false
134-
| Tvar _ -> ()
132+
| Tglob _ | Tunivar _ | Tvar _ -> ()
135133
| Ttuple tys -> List.iter (check_positivity_ident fct p params ident) tys
136134
| Tconstr (q, args) when EcPath.p_equal q p ->
137135
if not (ty_params_compat args params) then

0 commit comments

Comments
 (0)