Test Trac #9323
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 17 Jul 2014 09:01:25 +0000 (10:01 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 17 Jul 2014 09:01:42 +0000 (10:01 +0100)
testsuite/tests/typecheck/should_fail/T9323.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T9323.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T

diff --git a/testsuite/tests/typecheck/should_fail/T9323.hs b/testsuite/tests/typecheck/should_fail/T9323.hs
new file mode 100644 (file)
index 0000000..1aea288
--- /dev/null
@@ -0,0 +1,7 @@
+module T9323 where
+
+broken :: [Int]
+broken = ()
+
+ambiguous :: a -> String
+ambiguous _ = show 0
diff --git a/testsuite/tests/typecheck/should_fail/T9323.stderr b/testsuite/tests/typecheck/should_fail/T9323.stderr
new file mode 100644 (file)
index 0000000..f98ce7b
--- /dev/null
@@ -0,0 +1,5 @@
+
+T9323.hs:4:10:
+    Couldn't match expected type ‘[Int]’ with actual type ‘()’
+    In the expression: ()
+    In an equation for ‘broken’: broken = ()
index c1dbd58..cf2af30 100644 (file)
@@ -335,3 +335,4 @@ test('T9033', normal, compile_fail, [''])
 test('T8883', normal, compile_fail, [''])
 test('T9196', normal, compile_fail, [''])
 test('T9305', normal, compile_fail, [''])
+test('T9323', normal, compile_fail, [''])