blob: 9c92aa8aecf55f9bec3ed266dd2082d76d3839ad [file] [edit]
-- Artificial example for exposing a regression introduced while working on PR #5376
-- fix: modify projection instance binder info
class Foo (α : Type) [Add α] where
bla : [Mul α] → BEq α
set_option warn.classDefReducibility false in
attribute [instance] Foo.bla
inductive Boo where
| unit
instance : Add Boo where
add _ _ := .unit
instance : Mul Boo where
mul _ _ := .unit
def f [Foo Boo] (a b : Boo) : Bool :=
a == b