summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T21130.hs
blob: abeafdb50a19f6dacecd4caab8bbbe5867c426b2 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE TypeFamilies, FlexibleContexts #-}
module T21130 where

type family Item l
type instance Item [a] = a

f :: Enum (Item l) => l
f = f

x = (_ f) :: Int