PowerShell/test/powershell/Language
Dongbo Wang 0d8eff6446 Fix array expression to not return null or throw error (#4296)
This change fixes 3 issues:
- According to [PowerShell Language Specification Version 3.0](https://www.microsoft.com/en-us/download/details.aspx?id=36389), as quoted: "_The result is the (possibly empty) unconstrained 1-dimensional array_", `@(...)` should only return `object[]` array.
- `@([object[]]$null).GetType()` fails with error `"You cannot call a method on a null-valued expression."`
- `@([System.Collections.Generic.List[object]]$null)` fails with error `"Object reference not set to an instance of an object."`
2017-07-24 21:52:30 -07:00
..
Classes PSScriptAnalyzer fixes by category (#4261) 2017-07-21 21:03:49 -07:00
Interop/DotNet Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Operators add test coverage for -notcontains, -is, -isnot operators (#4179) 2017-07-11 12:27:04 -07:00
Parser PSScriptAnalyzer fixes by category (#4261) 2017-07-21 21:03:49 -07:00
Scripting Fix array expression to not return null or throw error (#4296) 2017-07-24 21:52:30 -07:00
CompletionTestSupport.psm1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00
map.json Fix try/catch to choose the more specific exception handler (#2429) 2016-12-09 12:37:08 -08:00