summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-gadts/pr5985.ml.reference
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typing-gadts/pr5985.ml.reference')
-rw-r--r--testsuite/tests/typing-gadts/pr5985.ml.reference14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/typing-gadts/pr5985.ml.reference b/testsuite/tests/typing-gadts/pr5985.ml.reference
index e9fa3461e4..af6154dda7 100644
--- a/testsuite/tests/typing-gadts/pr5985.ml.reference
+++ b/testsuite/tests/typing-gadts/pr5985.ml.reference
@@ -13,6 +13,20 @@ Error: Syntax error
object constraint 'a = 'b T.t val x' : 'b = x method x = x' end
Error: In this definition, a type variable cannot be deduced
from the type parameters.
+# Characters 83-128:
+ type 'x t = A of 'a constraint 'x = [< `X of 'a ] ;; (* fail *)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Error: In this definition, a type variable cannot be deduced
+ from the type parameters.
+# Characters 36-37:
+ let A x = A x in
+ ^
+Error: Unbound constructor A
+# Characters 4-37:
+ type 'a t = A : 'a -> [< `X of 'a ] t;; (* fail *)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Error: In this definition, a type variable cannot be deduced
+ from the type parameters.
# type (_, _) eq = Eq : ('a, 'a) eq
# val eq : 'a = <poly>
# val eq : ('a Queue.t, 'b Queue.t) eq = Eq