[commit: ghc] master: Test Trac #12039 (bd01bbb)

git at git.haskell.org git at git.haskell.org
Fri May 13 08:30:43 UTC 2016


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

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

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

commit bd01bbb24dcd9e426af85fc542ae5c9b5ab999b9
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu May 12 16:15:18 2016 +0100

    Test Trac #12039


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

bd01bbb24dcd9e426af85fc542ae5c9b5ab999b9
 testsuite/tests/partial-sigs/should_fail/T12039.hs     | 5 +++++
 testsuite/tests/partial-sigs/should_fail/T12039.stderr | 4 ++++
 testsuite/tests/partial-sigs/should_fail/all.T         | 1 +
 3 files changed, 10 insertions(+)

diff --git a/testsuite/tests/partial-sigs/should_fail/T12039.hs b/testsuite/tests/partial-sigs/should_fail/T12039.hs
new file mode 100644
index 0000000..f72f8af
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_fail/T12039.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE PartialTypeSignatures #-}
+
+module T12039 where
+
+class Num _ => B a
diff --git a/testsuite/tests/partial-sigs/should_fail/T12039.stderr b/testsuite/tests/partial-sigs/should_fail/T12039.stderr
new file mode 100644
index 0000000..2a5fe33
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_fail/T12039.stderr
@@ -0,0 +1,4 @@
+
+T12039.hs:5:11: error:
+    Wildcard ‘_’ not allowed
+      in the declaration for class ‘B’
diff --git a/testsuite/tests/partial-sigs/should_fail/all.T b/testsuite/tests/partial-sigs/should_fail/all.T
index 9553d9d..67d59a5 100644
--- a/testsuite/tests/partial-sigs/should_fail/all.T
+++ b/testsuite/tests/partial-sigs/should_fail/all.T
@@ -61,3 +61,4 @@ test('T10999', normal, compile_fail, [''])
 test('T11122', normal, compile, [''])
 test('T11976', normal, compile_fail, [''])
 test('PatBind3', normal, compile_fail, [''])
+test('T12039', normal, compile_fail, [''])



More information about the ghc-commits mailing list