summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T2307.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T2307.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/T2307.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T2307.hs b/testsuite/tests/typecheck/should_fail/T2307.hs
new file mode 100644
index 0000000000..321c2d5641
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T2307.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies,
+ OverlappingInstances, UndecidableInstances,
+ IncoherentInstances,
+ FlexibleInstances #-}
+
+-- Trac #2307
+
+module ShouldFail where
+
+ class C a b c | a -> b, a -> c
+ instance C Int (Maybe String) Float
+ instance C Int (Maybe Bool) Double