summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_fail/T21278.hs
blob: d256637b3220d12cb1808031d0c73d01fdb451a7 (plain)
1
2
3
4
5
6
7
{-# LANGUAGE LinearTypes #-}
module T21278 where

data C a = forall p. C (a %p -> a)

f :: C a -> C a
f b = C (\x -> case b of C g -> g x)