diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail202.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail202.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail202.hs b/testsuite/tests/typecheck/should_fail/tcfail202.hs new file mode 100644 index 0000000000..7565755218 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail202.hs @@ -0,0 +1,13 @@ +-- trac #2307 +-- This was accepted due to a bug in GHC + +{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, + OverlappingInstances, UndecidableInstances, IncoherentInstances, + FlexibleInstances #-} + +module Foo where + +class C a b c | b -> c +instance C Bool Int Float +instance C Char Int Double + |