summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/T15558.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/T15558.stderr')
-rw-r--r--testsuite/tests/gadt/T15558.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/T15558.stderr b/testsuite/tests/gadt/T15558.stderr
new file mode 100644
index 0000000000..ee70f0373b
--- /dev/null
+++ b/testsuite/tests/gadt/T15558.stderr
@@ -0,0 +1,9 @@
+
+T15558.hs:11:15: warning: [-Winaccessible-code (in -Wdefault)]
+ • Couldn't match type ‘Int’ with ‘Bool’
+ Inaccessible code in
+ a type expected by the context:
+ (a ~ Bool) => ()
+ • In the first argument of ‘MkFoo’, namely ‘()’
+ In the expression: MkFoo ()
+ In an equation for ‘f’: f MkT = MkFoo ()