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
I would expect that a "local" definition in the form of a where clause shadows a global definition with the same name. Instead, it appears that the global definition shadows the local definition if dot notation is used.
Prerequisites
Description
I would expect that a "local" definition in the form of a
where
clause shadows a global definition with the same name. Instead, it appears that the global definition shadows the local definition if dot notation is used.Context
Zulip chat
Steps to Reproduce
Minimal example (H/T to @eric-wieser)
Expected behavior: [Clear and concise description of what you expect to happen]
#eval bar
returns 11Actual behavior: [Clear and concise description of what actually happens]
#eval bar
returns 2Versions
Lean (version 4.3.0, commit 8e5cf64, Release)
Ubuntu 22.04.3
Additional Information
[Additional information, configuration or data that might be necessary to reproduce the issue]
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: