[commit: ghc] master: Test Trac #9323 (ef4e8c5)

git at git.haskell.org git at git.haskell.org
Thu Jul 17 09:01:49 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/ef4e8c54d8dfbceabe53f259ba15f42f6f1b967a/ghc

>---------------------------------------------------------------

commit ef4e8c54d8dfbceabe53f259ba15f42f6f1b967a
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Jul 17 10:01:25 2014 +0100

    Test Trac #9323


>---------------------------------------------------------------

ef4e8c54d8dfbceabe53f259ba15f42f6f1b967a
 testsuite/tests/typecheck/should_fail/T9323.hs     | 7 +++++++
 testsuite/tests/typecheck/should_fail/T9323.stderr | 5 +++++
 testsuite/tests/typecheck/should_fail/all.T        | 1 +
 3 files changed, 13 insertions(+)

diff --git a/testsuite/tests/typecheck/should_fail/T9323.hs b/testsuite/tests/typecheck/should_fail/T9323.hs
new file mode 100644
index 0000000..1aea288
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T9323.hs
@@ -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
index 0000000..f98ce7b
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T9323.stderr
@@ -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 = ()
diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T
index c1dbd58..cf2af30 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -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, [''])



More information about the ghc-commits mailing list