summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/VisFlag1.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/VisFlag1.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/VisFlag1.stderr23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/VisFlag1.stderr b/testsuite/tests/typecheck/should_fail/VisFlag1.stderr
new file mode 100644
index 0000000000..6593233fb9
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/VisFlag1.stderr
@@ -0,0 +1,23 @@
+
+VisFlag1.hs:12:16: error: [GHC-25115]
+ • Visibilities of forall-bound variables are not compatible
+ Expected: forall j. j -> *
+ Actual: forall k -> k -> *
+ • In the type ‘V’
+ In the expression: f @V MkV
+ In an equation for ‘bad_tyapp’: bad_tyapp = f @V MkV
+
+VisFlag1.hs:15:15: error: [GHC-91028]
+ • Expected kind ‘forall j. j -> *’, but ‘_’ has kind ‘k0’
+ Cannot instantiate unification variable ‘k0’
+ with a kind involving polytypes: forall j. j -> *
+ • In the expression: f @_ MkV
+ In an equation for ‘bad_wild’: bad_wild = f @_ MkV
+
+VisFlag1.hs:18:15: error: [GHC-25115]
+ • Visibilities of forall-bound variables are not compatible
+ Expected: forall j. j -> *
+ Actual: forall k -> k -> *
+ • In the first argument of ‘f’, namely ‘MkV’
+ In the expression: f MkV
+ In an equation for ‘bad_infer’: bad_infer = f MkV