summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T16247.hs
blob: 63db8ea175c2ae1a5959e85b05f389e380c3cb5f (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE DataKinds #-}
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