Idris2/tests/idris2/evaluator001/Issue650.idr

11 lines
174 B
Idris
Raw Normal View History

%default total
isNat : Type -> Bool
isNat Nat = True
isNat (List Char) = False
isNat Int = False
isNat _ = False
trivialEquality : isNat Int = False
trivialEquality = Refl