diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2011-10-21 16:54:24 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2011-10-21 16:54:24 +0100 |
commit | dcd2f02edb76bcefd8ba4d0c22eea5c72dbf1506 (patch) | |
tree | 56ac72d868d9d95146de9ca09c428a567b8a8a15 /testsuite/tests/rename | |
parent | e1bd9060966897573d8c6966549f4ed93c606e18 (diff) | |
download | haskell-dcd2f02edb76bcefd8ba4d0c22eea5c72dbf1506.tar.gz |
Test Trac #5533
Diffstat (limited to 'testsuite/tests/rename')
-rw-r--r-- | testsuite/tests/rename/should_fail/T5533.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/T5533.stderr | 4 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/all.T | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/T5533.hs b/testsuite/tests/rename/should_fail/T5533.hs new file mode 100644 index 0000000000..21646f4d40 --- /dev/null +++ b/testsuite/tests/rename/should_fail/T5533.hs @@ -0,0 +1,6 @@ +module T5533 where + +data T a = CT {f1 :: Int -> a, f2 :: Double} +f2 :: Int -> Double +g x = CT {f1 = \t -> f2 t + x, f2 = x} + diff --git a/testsuite/tests/rename/should_fail/T5533.stderr b/testsuite/tests/rename/should_fail/T5533.stderr new file mode 100644 index 0000000000..b46285132f --- /dev/null +++ b/testsuite/tests/rename/should_fail/T5533.stderr @@ -0,0 +1,4 @@ + +T5533.hs:4:1: + The type signature for `f2' lacks an accompanying binding + (You cannot give a type signature for a record selector or class method) diff --git a/testsuite/tests/rename/should_fail/all.T b/testsuite/tests/rename/should_fail/all.T index 5981982d23..ef7f857247 100644 --- a/testsuite/tests/rename/should_fail/all.T +++ b/testsuite/tests/rename/should_fail/all.T @@ -92,4 +92,5 @@ test('T5385', multimod_compile_fail, ['T5385','-v0']) test('T5513', normal, compile_fail, ['']) +test('T5533', normal, compile_fail, ['']) test('Misplaced', normal, compile_fail, ['']) |