diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T2307.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T2307.hs | 12 |
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 |