summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/PolyKinds04.hs
blob: d3e1078c4fb590cd5fc2a31e1eaf751fbeb407c8 (plain)
1
2
3
4
5
6
7
8

module PolyKinds04 where

data A f
data B = B1 (A Maybe)

-- Should fail. `A` is kind checked alone, and its kind is defaulted to * -> *.
-- The constructor `B1` then uses `A` with the wrong kind.