diff options
-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, ['']) |