summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T3692.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T3692.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/T3692.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T3692.hs b/testsuite/tests/typecheck/should_compile/T3692.hs
new file mode 100644
index 0000000000..b10e184d94
--- /dev/null
+++ b/testsuite/tests/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)