diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2016-05-12 16:15:18 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2016-05-13 09:33:57 +0100 |
commit | bd01bbb24dcd9e426af85fc542ae5c9b5ab999b9 (patch) | |
tree | 402f660292e40072a01322da590b7d35e76c9b3a /testsuite | |
parent | 5416fadb7387cbe89752faa875b2dade60655cf2 (diff) | |
download | haskell-bd01bbb24dcd9e426af85fc542ae5c9b5ab999b9.tar.gz |
Test Trac #12039
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/partial-sigs/should_fail/T12039.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/partial-sigs/should_fail/T12039.stderr | 4 | ||||
-rw-r--r-- | testsuite/tests/partial-sigs/should_fail/all.T | 1 |
3 files changed, 10 insertions, 0 deletions
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 0000000000..f72f8af9c9 --- /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 0000000000..2a5fe33b14 --- /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 9553d9d5d5..67d59a5ced 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, ['']) |