This PR fixes the call hierarchy for `where` declarations under the module system --------- Co-authored-by: mhuisi <mhuisi@protonmail.com>
17 lines
298 B
Text
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
|