blob: f53ecb9c413c06e18d7f4cf327fcfad274a62562 [file] [edit]
structure Foo where
a : Nat
instance fooAdd : Add Foo where
add x y := ⟨x.a + y.a⟩
def f1 (a b : Foo) := a + b
section
attribute [-instance] fooAdd
def f2 (a b : Foo) := a + b -- Error
end
def f3 (a b : Foo) := a + b