Skip to content

Commit 6cefc32

Browse files
StartAutomatingStartAutomating
authored andcommitted
[CommandAst].AsSentence: Allowing [Object] to contain multiple values (Fixes #279)
1 parent e54a613 commit 6cefc32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PipeScript.types.ps1xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ foreach ($potentialCommand in $potentialCommands) {
615615
elseif ($currentParameter) {
616616
if ($mappedParameters.Contains($currentParameter) -and
617617
$currentParameterMetadata.ParameterType -ne [Collections.IList] -and
618-
$currentParameterMetadata.ParameterType -ne [PSObject]
618+
$currentParameterMetadata.ParameterType -ne [PSObject] -and
619+
$currentParameterMetadata.ParameterType -ne [Object]
619620
) {
620621
$clauses += [PSCustomObject][Ordered]@{
621622
PSTypeName = 'PipeScript.Sentence.Clause'

0 commit comments

Comments
 (0)