summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail007.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail007.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail007.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail007.stderr b/testsuite/tests/typecheck/should_fail/tcfail007.stderr
new file mode 100644
index 0000000000..3545f8644f
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail007.stderr
@@ -0,0 +1,11 @@
+
+tcfail007.hs:3:16:
+ No instance for (Num Bool)
+ arising from the literal `1'
+ Possible fix: add an instance declaration for (Num Bool)
+ In the second argument of `(+)', namely `1'
+ In the expression: x + 1
+ In an equation for `n':
+ n x
+ | True = x + 1
+ | False = True