[commit: ghc] master: Add failing test for #11039 (fce758c)
git at git.haskell.org
git at git.haskell.org
Fri Oct 30 23:06:27 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/fce758c5a5a54e8cfa491c5168893854bf7e974d/ghc
>---------------------------------------------------------------
commit fce758c5a5a54e8cfa491c5168893854bf7e974d
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date: Fri Oct 30 21:09:33 2015 +0100
Add failing test for #11039
Reviewers: austin, bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1406
GHC Trac Issues: #11039
>---------------------------------------------------------------
fce758c5a5a54e8cfa491c5168893854bf7e974d
testsuite/tests/patsyn/should_fail/T11039.hs | 7 +++++++
testsuite/tests/patsyn/should_fail/all.T | 1 +
2 files changed, 8 insertions(+)
diff --git a/testsuite/tests/patsyn/should_fail/T11039.hs b/testsuite/tests/patsyn/should_fail/T11039.hs
new file mode 100644
index 0000000..69e8d2b
--- /dev/null
+++ b/testsuite/tests/patsyn/should_fail/T11039.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE PatternSynonyms #-}
+module Foo () where
+
+data A a = A a
+
+pattern Q :: () => (A ~ f) => a -> f a
+pattern Q a = A a
diff --git a/testsuite/tests/patsyn/should_fail/all.T b/testsuite/tests/patsyn/should_fail/all.T
index b960e37..7e3446f 100644
--- a/testsuite/tests/patsyn/should_fail/all.T
+++ b/testsuite/tests/patsyn/should_fail/all.T
@@ -16,3 +16,4 @@ test('records-mixing-fields', normal, compile_fail, [''])
test('records-exquant', normal, compile_fail, [''])
test('records-poly-update', normal, compile_fail, [''])
test('mixed-pat-syn-record-sels', normal, compile_fail, [''])
+test('T11039', [expect_broken(11039)], compile_fail, [''])
More information about the ghc-commits
mailing list