Skip to content

Commit 5974ca5

Browse files
Test generic method type parameters
Co-authored-by: andyleejordan <2226434+andyleejordan@users.noreply.github.com>
1 parent 60e032e commit 5974ca5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

spec/testfiles/syntax_test_TheBigTestFile.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,18 @@ There is no @platting here!
543543
# ^ punctuation.section.bracket.end.powershell
544544
# ^ punctuation.section.group.begin.powershell
545545
# ^ punctuation.section.group.end.powershell
546+
[Array]::Empty[int]()
547+
# ^ punctuation.section.bracket.begin.powershell
548+
# ^^^ storage.type.powershell
549+
# ^ punctuation.section.bracket.end.powershell
550+
[System.Linq.Enumerable]::Select[int,string]($null, $null)
551+
# ^ punctuation.section.bracket.begin.powershell
552+
# ^^^ ^^^^^^ storage.type.powershell
553+
# ^ punctuation.section.bracket.end.powershell
554+
[System.Linq.Enumerable]::Empty[System.Collections.Generic.List[int]]()
555+
# ^ ^ punctuation.section.bracket.begin.powershell
556+
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ storage.type.powershell
557+
# ^^ punctuation.section.bracket.end.powershell
546558

547559
# Commands (functions)
548560
Invoke-Something -foobar

0 commit comments

Comments
 (0)