Prerequisites
Exception report
Screenshot

Environment data
PS Version: 7.2.1
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.2.2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 245
BufferHeight: 67
Steps to reproduce
> Write-Error "an error"
> $Error[0]. <-- type <tab> or Ctrl+Space to try to complete Properties of System.Management.Automation.ErrorRecord
Expected behavior
Powershell should return completions of System.Management.Automation.ErrorRecord
Actual behavior
Powershell apparently returns completions of Array instead of ErrorRecord.
Prerequisites
Exception report
N/AScreenshot
Environment data
Steps to reproduce
Expected behavior
Powershell should return completions of
System.Management.Automation.ErrorRecordActual behavior
Powershell apparently returns completions of
Arrayinstead ofErrorRecord.