summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/TyAppPat_ExistentialEscape.hs
blob: d163874c8e7fb3fad58c1301f400f99644996817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ExistentialQuantification #-}

module Main where

data Some = forall a. Some a

foo (Some @a x) = (x :: a)

main = do
  print (foo (Some (5 :: Integer)) :: Integer)