summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T17787.hs
blob: fb6b5c1b98323295f6b8b21719f8baa60f8e4c4a (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE GADTs #-}
module T17787 where

data T a where
  C :: T ()

foo :: (T () -> T () -> ()) -> ()
foo f = f C C