lean4-htt/tests/lean/interactive/incomingCallHierarchyWhere.lean
Sebastian Ullrich 9f9531fa13
fix: getParentDeclName? inside where inside public def (#12119)
This PR fixes the call hierarchy for `where` declarations under the
module system

---------

Co-authored-by: mhuisi <mhuisi@protonmail.com>
2026-01-23 17:32:05 +00:00

17 lines
298 B
Text

--^ waitForILeans
module
-- Regression test for a bug where the module system broke the call hierarchy when tracking it
-- through a `where` in a `public def` of a `module`.
public section
def f := 0
--^ incomingCallHierarchy
def foo : Nat :=
bar
where
bar : Nat := f
def foobar := foo