mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Set StrictMode version 3.0 (#11563)
This commit is contained in:
@@ -887,7 +887,7 @@ class A
|
||||
|
||||
[int] GetX([Foo.Bar]$bar)
|
||||
{
|
||||
Set-StrictMode -Version latest
|
||||
Set-StrictMode -Version 3.0
|
||||
return $bar.x
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user