diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2013-05-28 14:03:51 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2013-05-28 14:03:51 +0100 |
commit | 3a596be3b6d9aa1741a0070f868d1843ce8a7560 (patch) | |
tree | 50a4240ad93a8c99946888d26e07c12628f03606 | |
parent | 02e0df0af97ff6a98577d99d40e5b9f9a98cd809 (diff) | |
download | haskell-3a596be3b6d9aa1741a0070f868d1843ce8a7560.tar.gz |
Test Trac #7943
-rw-r--r-- | testsuite/tests/rename/should_fail/T7943.hs | 4 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/T7943.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/all.T | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/T7943.hs b/testsuite/tests/rename/should_fail/T7943.hs new file mode 100644 index 0000000000..a1a99d508a --- /dev/null +++ b/testsuite/tests/rename/should_fail/T7943.hs @@ -0,0 +1,4 @@ +module T7943 where + +data Foo = A { bar :: String } + | B String { bar :: String } diff --git a/testsuite/tests/rename/should_fail/T7943.stderr b/testsuite/tests/rename/should_fail/T7943.stderr new file mode 100644 index 0000000000..8594a25e2f --- /dev/null +++ b/testsuite/tests/rename/should_fail/T7943.stderr @@ -0,0 +1,2 @@ + +T7943.hs:4:22: Record syntax is illegal here: {bar :: String} diff --git a/testsuite/tests/rename/should_fail/all.T b/testsuite/tests/rename/should_fail/all.T index c94b39300b..3b315a7151 100644 --- a/testsuite/tests/rename/should_fail/all.T +++ b/testsuite/tests/rename/should_fail/all.T @@ -109,3 +109,4 @@ test('T7338a', normal, compile_fail, ['']) test('T7454', normal, compile, ['']) test('T7906', normal, compile_fail, ['']) test('T7937', normal, compile_fail, ['']) +test('T7943', normal, compile_fail, ['']) |