summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/BadTelescope4.hs
blob: a2d82fdb1a002e01a555ade8adb058e9cea6e14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE ExistentialQuantification, TypeInType #-}
module BadTelescope4 where

import Data.Proxy
import Data.Kind

data SameKind :: k -> k -> Type

data Bad a (c :: Proxy b) (d :: Proxy a) (x :: SameKind b d)

data Borked a (b :: k) = forall (c :: k). B (Proxy c)
  -- this last one is OK. But there was a bug involving renaming
  -- that failed here, so the test case remains.