Skip to content

Commit e54a613

Browse files
author
James Brundage
committed
[CommandAst].AsSentence: Allowing [Object] to contain multiple values (Fixes #279)
1 parent dfc0eca commit e54a613

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Types/CommandAST/AsSentence.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ foreach ($potentialCommand in $potentialCommands) {
333333
elseif ($currentParameter) {
334334
if ($mappedParameters.Contains($currentParameter) -and
335335
$currentParameterMetadata.ParameterType -ne [Collections.IList] -and
336-
$currentParameterMetadata.ParameterType -ne [PSObject]
336+
$currentParameterMetadata.ParameterType -ne [PSObject] -and
337+
$currentParameterMetadata.ParameterType -ne [Object]
337338
) {
338339
$clauses += [PSCustomObject][Ordered]@{
339340
PSTypeName = 'PipeScript.Sentence.Clause'

0 commit comments

Comments
 (0)