diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc210.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/tc210.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc210.hs b/testsuite/tests/typecheck/should_compile/tc210.hs new file mode 100644 index 0000000000..a2cc717122 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/tc210.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE Rank2Types #-} + +module ShouldCompile where + +f :: forall a. a -> forall b. b -> Int +f = error "urk" + +-- Both these should be ok, but an early GHC 6.6 failed + +g1 = [ (+) :: Int -> Int -> Int, f ] +g2 = [ f, (+) :: Int -> Int -> Int ] + |