aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Chris Parsons <cparsons@google.com>2016-08-10 21:20:38 +0000
committerGravatar Yue Gan <yueg@google.com>2016-08-11 09:15:48 +0000
commite41857b2e3bd279e3b00a7137b750afd0bc16868 (patch)
tree520d48d0d4eaf0c16d13de8e35351ba0f76057dc /src/test
parent95bbe9c4ceafae7bd3fdd08169b5891d6849f3f9 (diff)
*** Reason for rollback *** Breaks release. *** *** Original change description *** Fix Environment.Continuation's tracking of global variables RELNOTES[INC]: Skylark: It is an error to shadow a global variable with a local variable after the global has already been accessed in the function. -- MOS_MIGRATED_REVID=129910501
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java b/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java
index 3451238e01..d5d393702b 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java
@@ -120,18 +120,6 @@ public class FunctionTest extends EvaluationTestCase {
}
@Test
- public void testFunctionDefLocalVariableReferencedInCallBeforeAssignment() throws Exception {
- checkEvalErrorContains("Variable 'a' is referenced before assignment.",
- "def dummy(x):",
- " pass",
- "a = 1",
- "def func():",
- " dummy(a)",
- " a = 2",
- "func()\n");
- }
-
- @Test
public void testFunctionDefLocalVariableReferencedAfterAssignment() throws Exception {
eval("a = 1",
"def func():",