liquidhaskell-0.9.0.2.1: tests/neg/AdtPeano0.hs
{-@ LIQUID "--expect-any-error" @-}
{-@ LIQUID "--exact-data-con" @-}
{-@ LIQUID "--higherorder" @-}
module AdtPeano0 where
data Influx = Silly Int
{-@ reflect thing @-}
thing :: Influx -> Int
thing (Silly a) = a + 1
{-@ reflect bling @-}
bling :: Influx -> Int
bling (Silly b) = b
{-@ test :: m:Influx -> { thing m = bling m} @-}
test :: Influx -> (Int, Int)
test m = (thing m, bling m)