Throw a static error when lvalue of an augmented assignment is a list.
RELNOTES:
When the lvalue of an augmented assignment is a list, we now throw an error
before evaluating the code (e.g. `a, b += 2, 3`).
PiperOrigin-RevId: 165906611
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java
index 374ac78..bd43adb 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java
@@ -964,7 +964,8 @@
@Test
public void testInvalidAugmentedAssignment_ListLiteral() throws Exception {
- new SkylarkTest().testIfErrorContains("cannot perform augmented assignment on a list literal",
+ new SkylarkTest().testIfErrorContains(
+ "cannot perform augmented assignment on a list or tuple expression",
"def f(a, b):",
" [a, b] += []",
"f(1, 2)");