summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T20443a.hs
blob: 539c0cd2f2a1848576aadcc992c3bdc8e0f10ccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module T20443a where

import Data.Kind

data Proxy t where
  Proxy :: forall {k} (t :: k) . Proxy t

a :: () -> Proxy Int
-- a = Proxy @Type @Int -- This would, rightfully, not compile
a () = Proxy @Int

b :: Proxy Int -> ()
b (Proxy @Int) = ()