Handle constrained types in type.ml while we're at it.
This commit is contained in:
parent
fc1b86e1ca
commit
675f90eca3
@ -287,6 +287,9 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
|
||||
Ast.TY_exterior (unify_resolved_types a b)
|
||||
| Ast.TY_mutable a, b | b, Ast.TY_mutable a ->
|
||||
Ast.TY_mutable (unify_resolved_types a b)
|
||||
| Ast.TY_constrained (a, constrs), b
|
||||
| b, Ast.TY_constrained (a, constrs) ->
|
||||
Ast.TY_constrained ((unify_resolved_types a b), constrs)
|
||||
| _ -> fail()
|
||||
in
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user