Skip to content

Commit 62eab65

Browse files
StartAutomatingStartAutomating
authored andcommitted
[CommandAst].AsSentence: Fixing singleton behavior (Fixes #279)
1 parent 6645c7d commit 62eab65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PipeScript.types.ps1xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ foreach ($potentialCommand in $potentialCommands) {
614614
}
615615
elseif ($currentParameter) {
616616
if ($mappedParameters.Contains($currentParameter) -and
617-
$currentParameter.ParameterType -isnot [Collections.IList] -and
618-
$currentParameter.ParameterType -isnot [PSObject]
617+
$currentParameterMetadata.ParameterType -ne [Collections.IList] -and
618+
$currentParameterMetadata.ParameterType -ne [PSObject]
619619
) {
620620
$clauses += [PSCustomObject][Ordered]@{
621621
PSTypeName = 'PipeScript.Sentence.Clause'

0 commit comments

Comments
 (0)