-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issue
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
- Open a fresh session of PowerShell
- Run the following snippet in the new session and notice the result
- Rerun it and notice the result
Snippet:
using namespace System.Management.Automation.Language
$RootAst = [Parser]::ParseInput('[System.Collections.Generic.List[string]]', [ref]$null, [ref]$null)
$TypeAst = $RootAst.Find({param($ast) $ast -is [TypeExpressionAst]}, $true)
$TypeAst.TypeName.TypeName.GetReflectionType()
Expected behavior
The following output every time:
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True List`1 System.ObjectActual behavior
The previously shown output once per session.Error details
Environment data
Name Value
---- -----
PSVersion 7.6.0-preview.2
PSEdition Core
GitCommitId 7.6.0-preview.2
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Metadata
Metadata
Assignees
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issue