Skip to content

Commit

Permalink
add test related to issue #8698
Browse files Browse the repository at this point in the history
  • Loading branch information
garrigue committed Jun 10, 2019
1 parent 44adb3c commit aad3b34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions testsuite/tests/typing-misc/ocamltests
Expand Up @@ -23,6 +23,7 @@ printing.ml
records.ml
scope_escape.ml
unique_names_in_unification.ml
variance.ml
variant.ml
wellfounded.ml
empty_variant.ml
Expand Down
13 changes: 13 additions & 0 deletions testsuite/tests/typing-misc/variance.ml
@@ -0,0 +1,13 @@
(* TEST
* expect
*)

(* #8698 *)

(* Actually, this is not a bug *)
type +'a t = [> `Foo of 'a -> unit] as 'a;;
[%%expect{|
type 'a t = 'a constraint 'a = [> `Foo of 'a -> unit ]
|}, Principal{|
type +'a t = 'a constraint 'a = [> `Foo of 'a -> unit ]
|}]

0 comments on commit aad3b34

Please sign in to comment.