blob: 37b3cc5a0deb09d6894169db11bd3c5ce2a2ad62 [file] [edit]
/-!
# Names of inferred instances clash (issue 951)
-/
inductive ThingA where
| mkA
deriving Ord
instance : LE ThingA where
le a b := (compare a b).isLE
instance (t₁ t₂ : ThingA) : Decidable (t₁ <= t₂) := inferInstance
#check instDecidableLeThingA
inductive ThingB where
| mkB
deriving Ord
instance : LE ThingB where
le a b := (compare a b).isLE
instance (t₁ t₂ : ThingB) : Decidable (t₁ <= t₂) := inferInstance
#check instDecidableLeThingB