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
As visible in the following screenshot, there is "1 reference" found for the function Get-ResultStateBGClass - this one usage is also visiable right below in the function Get-ResultStateAlertBGClass:
But, in the same file, some lines down there's a class which also uses the function Get-ResultStateBGClass within a function:
(so there should be two references for Get-ResultStateBGClass...)
This is reproducable with this very easy setup:
function Get-Foo {
return "foo"
}
class Bar {
[string] BarGetFoo {
$var = Get-Foo
}
}
The text was updated successfully, but these errors were encountered:
Slightly modified example to proper code but this issue is still valid
functionGet-Foo {
return"foo"
}
classBar {
[string] BarGetFoo() {
returnGet-Foo#This does not get properly referenced to the definition
}
}
Get-Foo#This does
System Details
$PSVersionTable
:references not found when used in class
As visible in the following screenshot, there is "1 reference" found for the function
Get-ResultStateBGClass
- this one usage is also visiable right below in the functionGet-ResultStateAlertBGClass
:But, in the same file, some lines down there's a class which also uses the function
Get-ResultStateBGClass
within a function:(so there should be two references for
Get-ResultStateBGClass
...)This is reproducable with this very easy setup:
The text was updated successfully, but these errors were encountered: