liquidhaskell-0.8.2.3: tests/pos/T1126a.hs
{-# LANGUAGE FlexibleInstances #-}
module Instances where
class OptEq a where
zoo :: a -> a -> a
instance OptEq a where
{-@ instance OptEq a where
zoo :: x:a -> y:{a | x == y} -> a
@-}
zoo x _ = x
instance OptEq Int where
{-@ instance OptEq Int where
zoo :: x:Int -> y:{Int| x == y} -> Int
@-}
zoo x _ = x