liquidhaskell-0.9.0.2.1: tests/errors/HigherOrderBinder.hs
{-@ LIQUID "--expect-error-containing=Illegal type specification for `HigherOrderBinder.foo`" @-}
module HigherOrderBinder where
{-@ foo :: a: Int -> f: (Int -> Int) -> {v : Int | v = 123 + (f a) } @-}
foo :: Int -> (Int -> Int) -> Int
foo a f = f a
main :: IO ()
main = pure ()