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

-- Triggered a desugaring bug in earlier verison

module Shouldcompile where

data T a where
  T1 :: Int -> T Int

f :: (T a, a) -> Int
f (T1 x, z) = z