summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T9318.hs
blob: 3110305318a93288d8fe639c90c54caf9f35e8af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE TypeFamilies #-}

module T9318 where

type family F x
type instance F Int = Bool

foo :: F Int -> ()
foo True = ()

bar :: F Int -> ()
bar 'x' = ()