Skip to content

Commit 6645c7d

Browse files
author
James Brundage
committed
[CommandAst].AsSentence: Fixing singleton behavior (Fixes #279)
1 parent 2fcbb44 commit 6645c7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Types/CommandAST/AsSentence.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ foreach ($potentialCommand in $potentialCommands) {
332332
}
333333
elseif ($currentParameter) {
334334
if ($mappedParameters.Contains($currentParameter) -and
335-
$currentParameter.ParameterType -isnot [Collections.IList] -and
336-
$currentParameter.ParameterType -isnot [PSObject]
335+
$currentParameterMetadata.ParameterType -ne [Collections.IList] -and
336+
$currentParameterMetadata.ParameterType -ne [PSObject]
337337
) {
338338
$clauses += [PSCustomObject][Ordered]@{
339339
PSTypeName = 'PipeScript.Sentence.Clause'

0 commit comments

Comments
 (0)