summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadt11.hs
blob: c0e176f1ff18c4f0684c863b800c094ef82ab6aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE GADTs #-}

module ShouldFail where

-- Wrong return type
data T1 a where
  K1 :: T1 Int
  K2 :: T2 Int -> T1 Bool

data T2 a where
  L1 :: T2 Int
  L2 :: T1 Bool