diff options
-rw-r--r-- | testsuite/tests/parser/should_fail/T17865.hs | 3 | ||||
-rw-r--r-- | testsuite/tests/parser/should_fail/T17865.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/parser/should_fail/all.T | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/T17865.hs b/testsuite/tests/parser/should_fail/T17865.hs new file mode 100644 index 0000000000..b278ec09ae --- /dev/null +++ b/testsuite/tests/parser/should_fail/T17865.hs @@ -0,0 +1,3 @@ +module T17865 where + +data T = 'MkT diff --git a/testsuite/tests/parser/should_fail/T17865.stderr b/testsuite/tests/parser/should_fail/T17865.stderr new file mode 100644 index 0000000000..786196c3a8 --- /dev/null +++ b/testsuite/tests/parser/should_fail/T17865.stderr @@ -0,0 +1,2 @@ +T17865.hs:3:10: + Cannot parse data constructor in a data/newtype declaration: 'MkT diff --git a/testsuite/tests/parser/should_fail/all.T b/testsuite/tests/parser/should_fail/all.T index 5198d2151d..d75e82c032 100644 --- a/testsuite/tests/parser/should_fail/all.T +++ b/testsuite/tests/parser/should_fail/all.T @@ -198,3 +198,4 @@ test('RecordWildCardsFail', normal, compile_fail, ['']) test('ViewPatternsFail', normal, compile_fail, ['']) test('ParserNoTH1', normal, compile_fail, ['']) test('ParserNoTH2', normal, compile_fail, ['']) +test('T17865', normal, compile_fail, ['']) |