summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T12563.hs
blob: 394fa615d8c43956533ad4dd7e29ef5b7a00e466 (plain)
1
2
3
4
5
6
7
{-# LANGUAGE RankNTypes #-}
module T12563 where

foo :: ((forall a. f a) -> f r) -> f r
foo g = undefined

x = \g -> foo g