Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
garrigue committed Jul 5, 2021
1 parent 085d978 commit b2ea6be
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions testsuite/tests/typing-gadts/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -631,15 +631,6 @@ let f (type a) (x : a t) y =
in M.z
;; (* fails because of aliasing... *)
[%%expect{|
Lines 2-4, characters 2-10:
2 | ..match x with Int ->
3 | let module M = struct type b = a let z = (y : b) end
4 | in M.z
Warning 18 [not-principal]:
The return type of this pattern-matching is ambiguous.
Please add a type annotation, as the choice of `a' is not principal.
val f : 'a t -> 'a -> 'a = <fun>
|}, Principal{|
Line 3, characters 46-47:
3 | let module M = struct type b = a let z = (y : b) end
^
Expand Down

0 comments on commit b2ea6be

Please sign in to comment.