Fixes update-assign with collect object issue #830

This commit is contained in:
Mike Farah
2021-05-22 08:22:45 +10:00
parent af283315f2
commit 48eeb2a9df
3 changed files with 36 additions and 1 deletions
+8
View File
@@ -5,6 +5,14 @@ import (
)
var collectOperatorScenarios = []expressionScenario{
{
skipDoc: true,
document: ``,
expression: `.a += [0]`,
expected: []string{
"D0, P[], ()::a:\n - 0\n",
},
},
{
description: "Collect empty",
document: ``,