Improve type inference for foreach statement variables by: Inferring strongly typed arrays from explicit array and array literal expressions when elements are of the same inferred type Fix detection of foreach variable declaration. The previous logic was to check if the variable expression's start offset was after the end offset of the foreach statement, which will never be true in the body Improve inference of what type the "Condition" of a foreach statement will enumerate as |
||
---|---|---|
.. | ||
common/markdown | ||
docker/networktest | ||
hosting | ||
packaging/windows | ||
powershell | ||
shebang | ||
tools | ||
xUnit | ||
README.md | ||
Test.Common.props |
Testing
The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./xUnit. The third-party shebang test is in ./shebang.