Commit dde0085a authored by Simon Peyton Jones's avatar Simon Peyton Jones

Test Trac #5957

parent d6ff372f
module T5957 where
flex :: Int -> Show a => a -> String
flex i a = show a ++ show i
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
......@@ -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, [''])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment