liquidhaskell-0.8.0.2: tests/pos/NewType.hs
newtype Foo a = Bar Int
{-@ newtype Foo a = Bar { x :: Nat } @-}
{-@ fromFoo :: Foo a -> Nat @-}
fromFoo :: Foo a -> Int
fromFoo (Bar n) = n
bar = Bar 0
newtype Foo a = Bar Int
{-@ newtype Foo a = Bar { x :: Nat } @-}
{-@ fromFoo :: Foo a -> Nat @-}
fromFoo :: Foo a -> Int
fromFoo (Bar n) = n
bar = Bar 0