blob: 953f432fb033c4e078bd730b29bbb634af13ceba [file]
def one (α : Type u) [OfNat α (nat_lit 1)] : α := 1
abbrev HasOne (α : Type u) := OfNat α (nat_lit 1)
def one' (α : Type u) [HasOne α] : α := 1
example : HasOne Nat := inferInstance