summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/tc135.hs
blob: 6ede73f573f7e1a3a62c016ae892280c7cb47caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE ScopedTypeVariables, ExistentialQuantification #-}

-- !!! scoped type variables w/ existential types
-- this test failed in GHC 5.00

module ShouldCompile where

data T = forall a. MkT [a]

f :: T -> T
f (MkT [t::a]) = MkT t3
    where t3::[a] = [t,t,t]