summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T21896.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/T21896.stderr')
-rw-r--r--testsuite/tests/indexed-types/should_fail/T21896.stderr24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/T21896.stderr b/testsuite/tests/indexed-types/should_fail/T21896.stderr
new file mode 100644
index 0000000000..971c220171
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_fail/T21896.stderr
@@ -0,0 +1,24 @@
+
+T21896.hs:8:5: error:
+ • Type family equation right-hand sides overlap; this violates
+ the family's injectivity annotation:
+ forall {k} {r :: k}. F 'Foo r = r -- Defined at T21896.hs:8:5
+ forall {k} {r :: k}. F 'Bar r = r -- Defined at T21896.hs:9:5
+ • In the equations for closed type family ‘F’
+ In the type family declaration for ‘F’
+
+T21896.hs:8:5: error:
+ • Type family equation violates the family's injectivity annotation.
+ RHS of injective type family equation is a bare type variable
+ but these LHS type and kind patterns are not bare variables: ‘'Foo’
+ forall {k} {r :: k}. F 'Foo r = r -- Defined at T21896.hs:8:5
+ • In the equations for closed type family ‘F’
+ In the type family declaration for ‘F’
+
+T21896.hs:9:5: error:
+ • Type family equation violates the family's injectivity annotation.
+ RHS of injective type family equation is a bare type variable
+ but these LHS type and kind patterns are not bare variables: ‘'Bar’
+ forall {k} {r :: k}. F 'Bar r = r -- Defined at T21896.hs:9:5
+ • In the equations for closed type family ‘F’
+ In the type family declaration for ‘F’