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

-- Triggered a desugaring bug in earlier version

module Shouldcompile where

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

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