summaryrefslogtreecommitdiff
path: root/testsuite/tests/saks/should_fail/saks_fail018.hs
blob: 4febbe25308252ebba91f41a18895d0cdee1b9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PolyKinds, ExplicitForAll #-}

module SAKS_Fail018 where

import Data.Kind (Type)

data P w

-- j = k, x = a
type T :: forall k. forall (a :: k) -> Type
data T (x :: j) = MkT (P k) (P j) (P x)    -- 'k' is not brought into scope by ScopedTypeVariables