diff options
author | Anders Papitto <anderspapitto@gmail.com> | 2013-08-18 14:14:28 -0700 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2013-08-18 23:13:03 -0500 |
commit | 8a1456a726e5d5948563e581fc46a77979266bd4 (patch) | |
tree | 413c26cf78929d3e76c9c382992be772dda21e4a /testsuite/tests/parser/should_fail | |
parent | 9aaaf624dc182094cbd94860e04b987046e59f13 (diff) | |
download | haskell-8a1456a726e5d5948563e581fc46a77979266bd4.tar.gz |
Test case for #7901.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'testsuite/tests/parser/should_fail')
-rw-r--r-- | testsuite/tests/parser/should_fail/ParserNoForallUnicode.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/parser/should_fail/ParserNoForallUnicode.stderr | 5 | ||||
-rw-r--r-- | testsuite/tests/parser/should_fail/all.T | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/ParserNoForallUnicode.hs b/testsuite/tests/parser/should_fail/ParserNoForallUnicode.hs new file mode 100644 index 0000000000..e5591de2bf --- /dev/null +++ b/testsuite/tests/parser/should_fail/ParserNoForallUnicode.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE UnicodeSyntax #-} + +module ParserNoForallUnicode where + +id' :: ∀ a . a → a +id' a = a diff --git a/testsuite/tests/parser/should_fail/ParserNoForallUnicode.stderr b/testsuite/tests/parser/should_fail/ParserNoForallUnicode.stderr new file mode 100644 index 0000000000..a359864f44 --- /dev/null +++ b/testsuite/tests/parser/should_fail/ParserNoForallUnicode.stderr @@ -0,0 +1,5 @@ + +ParserNoForallUnicode.hs:5:8: + Illegal symbol '∀' in type + Perhaps you intended -XRankNTypes or similar flag + to enable explicit-forall syntax: ∀ <tvs>. <type> diff --git a/testsuite/tests/parser/should_fail/all.T b/testsuite/tests/parser/should_fail/all.T index 378a73f4a6..f6d571670d 100644 --- a/testsuite/tests/parser/should_fail/all.T +++ b/testsuite/tests/parser/should_fail/all.T @@ -72,6 +72,7 @@ test('NondecreasingIndentationFail', normal, compile_fail, ['']) test('readFailTraditionalRecords1', normal, compile_fail, ['']) test('readFailTraditionalRecords2', normal, compile_fail, ['']) test('readFailTraditionalRecords3', normal, compile_fail, ['']) +test('ParserNoForallUnicode', normal, compile_fail, ['']) test('ParserNoLambdaCase', when(compiler_lt('ghc', '7.5'), skip), compile_fail, ['']) test('ParserNoMultiWayIf', when(compiler_lt('ghc', '7.5'), skip), compile_fail, ['']) |