summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T16762a.hs
blob: 4f56c8b3e9856841abb4f2763f396ca3752b9874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE TypeFamilies, GADTs, DataKinds, PolyKinds, ExplicitForAll #-}

module T16762a where

import Data.Kind

data SameKind :: k -> k -> Type

type family F a

-- This should jolly well be rejected!
type instance forall a k (b::k). F (SameKind a b) = Int