File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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] *)
131130and 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
You can’t perform that action at this time.
0 commit comments