summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadtSyntaxFail002.hs
blob: cb33d6795ed349e762eea3daf89c6aa5baaa0aae (plain)
1
2
3
4
5
6
7
8
9

{-# LANGUAGE GADTSyntax #-}

module GadtSyntaxFail002 where

data Foo a b where
    C1 :: a -> Int -> b -> Foo b a
    C2 :: a -> Char -> Foo a a
    Cs :: Foo a b