Steps to reproduce
class X {
[string] $s
[int] $I
}
[X] @{
I = 1123098
S = "Text"
}
Expected behavior
Actual behavior
Environment data
Name Value
---- -----
PSVersion 6.1.0-preview.3
PSEdition Core
GitCommitId v6.1.0-preview.3
OS Microsoft Windows 10.0.16299
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
This does not happen on Windows PowerShell 5.1 or pwsh 6.0.2.
Steps to reproduce
Expected behavior
Actual behavior
Environment data
This does not happen on Windows PowerShell 5.1 or pwsh 6.0.2.