diff options
author | simonpj <simonpj@microsoft.com> | 2010-09-19 19:24:05 +0000 |
---|---|---|
committer | simonpj <simonpj@microsoft.com> | 2010-09-19 19:24:05 +0000 |
commit | 5e9a571169e0fec8f626e738b6e10a40564ce663 (patch) | |
tree | 58d8ea161e24a01b016582d97334f4f5d9829aa9 /testsuite/tests/ghc-regress/typecheck/should_compile/T3692.hs | |
parent | 489f296d007e559b069fa9c30daf681a2477d14f (diff) | |
download | haskell-5e9a571169e0fec8f626e738b6e10a40564ce663.tar.gz |
Add tests for Trac #3851, 4200, 3692, 3500
Diffstat (limited to 'testsuite/tests/ghc-regress/typecheck/should_compile/T3692.hs')
-rw-r--r-- | testsuite/tests/ghc-regress/typecheck/should_compile/T3692.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-regress/typecheck/should_compile/T3692.hs b/testsuite/tests/ghc-regress/typecheck/should_compile/T3692.hs new file mode 100644 index 0000000000..b10e184d94 --- /dev/null +++ b/testsuite/tests/ghc-regress/typecheck/should_compile/T3692.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE RankNTypes #-}
+
+module T3692 where
+
+type Foo a b = () -> (Bar a => a)
+
+class Bar a where {}
+
+foo :: Foo a b
+foo = id (undefined :: Foo a b)
|