diff options
Diffstat (limited to 'testsuite/tests/quantified-constraints/T17267b.hs')
-rw-r--r-- | testsuite/tests/quantified-constraints/T17267b.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/quantified-constraints/T17267b.hs b/testsuite/tests/quantified-constraints/T17267b.hs new file mode 100644 index 0000000000..82285d0265 --- /dev/null +++ b/testsuite/tests/quantified-constraints/T17267b.hs @@ -0,0 +1,16 @@ +{-# LANGUAGE QuantifiedConstraints #-} +{-# LANGUAGE MultiParamTypeClasses #-} +{-# LANGUAGE FlexibleInstances #-} +{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE UndecidableInstances #-} + +module T17267b where + +-- Now rejected +uc :: a -> b +uc = oops where + oops :: (a ~ b => a ~ b) => a -> b + oops x = x + |