summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T15767.hs
blob: f9f853d4ae3be484d66960daffeaeb87e2d5ba75 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE FunctionalDependencies, FlexibleContexts #-}

module T15767 where

class C a b | b -> a where f :: a -> b

y = x where
  x :: (C () b, C Bool b) => b
  x  = f ()