summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T16247.hs
blob: 617f3c4acae85db396017a430e3872d4166790e7 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeInType #-}
module Bug where

import Data.Kind

data SameKind :: forall k. k -> k -> Type
data Foo :: forall a k (b :: k). SameKind a b -> Type where
  MkFoo :: Foo sameKind