summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/lazypat.hs
blob: e05e3cb80cfae9cc63c9df5d283cf60c6bdc146b (plain)
1
2
3
4
5
6
7
{-# LANGUAGE GADTs, ExistentialQuantification #-}

module ShouldFail where

data T = forall a. T a (a->Int)

f ~(T x f) = f x