summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/GivenTypeSynonym.hs
blob: 2ac53754852a5f6024d0780b3b99955c60c3d108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE TypeFamilies #-}
module Main where

data A a

type T a = A a


f :: (A a ~ T Int) => a -> Int
f x = x


main :: IO ()
main = return ()