You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to mathlib4 or std4.
Description
Jump-to-definition doesn't work for automatically generated instances to parent classes, see the MWE below.
classMySemigroup (G : Type u) extends Mul G where
mul_assoc : ∀ a b c : G, a * b * c = a * (b * c)
classMyMulComm (G : Type u) extends Mul G where
mul_comm : ∀ a b : G, a * b = b * a
classMyCommSemigroup (G : Type u) extends MySemigroup G, MyMulComm G
#check MySemigroup -- jump to definition works#check MySemigroup.mul_assoc -- jump to definition works#check MySemigroup.toMul -- jump to definition doesn't work#check MyCommSemigroup.toMySemigroup -- jump to definition doesn't work#check MyCommSemigroup.toMyMulComm -- jump to definition doesn't work
Expected behavior: jumping to all these declarations should work with F12 (it should jump to the line containing the class (or extends) command.
Prerequisites
Description
Jump-to-definition doesn't work for automatically generated instances to parent classes, see the MWE below.
Expected behavior: jumping to all these declarations should work with F12 (it should jump to the line containing the
class
(orextends
) command.Versions
4.4.0-rc1
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: