diff options
author | Dimitrios.Vytiniotis <dimitris@microsoft.com> | 2012-04-04 17:04:07 +0100 |
---|---|---|
committer | Dimitrios.Vytiniotis <dimitris@microsoft.com> | 2012-04-04 17:04:07 +0100 |
commit | db71e3edcd006067054c0ae2fe555d292c59fc18 (patch) | |
tree | cc4da12269f3a5f050a4c3670e83df860c703c9b /testsuite/tests/typecheck/should_fail | |
parent | 77af34380c16edb8b972aa360a44bdcac91aa5be (diff) | |
parent | 01fcb7aa26f30d8c1362922a361d86403f95d338 (diff) | |
download | haskell-db71e3edcd006067054c0ae2fe555d292c59fc18.tar.gz |
Merge branch 'master' of http://darcs.haskell.org/testsuite
Diffstat (limited to 'testsuite/tests/typecheck/should_fail')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T2714.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T5957.hs | 4 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T5957.stderr | 6 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_fail/all.T | 1 |
4 files changed, 12 insertions, 1 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T2714.hs b/testsuite/tests/typecheck/should_fail/T2714.hs index 80f838c37c..b27acb735b 100644 --- a/testsuite/tests/typecheck/should_fail/T2714.hs +++ b/testsuite/tests/typecheck/should_fail/T2714.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE ScopedTypeVariables, RankNTypes #-}
-- Trac #2714
diff --git a/testsuite/tests/typecheck/should_fail/T5957.hs b/testsuite/tests/typecheck/should_fail/T5957.hs new file mode 100644 index 0000000000..c168a00f3a --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T5957.hs @@ -0,0 +1,4 @@ +module T5957 where + +flex :: Int -> Show a => a -> String +flex i a = show a ++ show i diff --git a/testsuite/tests/typecheck/should_fail/T5957.stderr b/testsuite/tests/typecheck/should_fail/T5957.stderr new file mode 100644 index 0000000000..c0bc12a7a2 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T5957.stderr @@ -0,0 +1,6 @@ + +T5957.hs:3:9: + Illegal polymorphic or qualified type: Show a => a -> String + Perhaps you intended to use -XRankNTypes or -XRank2Types + In the type signature for `flex': + flex :: Int -> Show a => a -> String diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T index 9d4d6a03c4..caf92fb011 100644 --- a/testsuite/tests/typecheck/should_fail/all.T +++ b/testsuite/tests/typecheck/should_fail/all.T @@ -271,3 +271,4 @@ test('T5573b', normal, compile_fail, ['']) test('T5689', normal, compile_fail, ['']) test('T5684', normal, compile_fail, ['']) test('T5858', normal, compile_fail, ['']) +test('T5957', normal, compile_fail, ['']) |