Idris2/tests/idris2/basic064/Issue2072.idr
2021-11-19 17:42:07 +00:00

10 lines
249 B
Idris

data Elem : Type -> List Type -> Type where
Types : (0 a : Type) -> Eq a => List Type
export
body : (0 _ : Eq t1)
=> {auto 0 _ : Elem Bool (Types t1)}
-> (obj : t1)
-> (obj == obj) === maybe True (const False) (guard (obj == obj))