Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1786)

Unified Diff: tests/language_2/assignable_expression_test.dart

Issue 2986093002: Revert two Kernel changes that were causing test failures. (Closed)
Patch Set: Revert "Migrate language/async_backwards... ... language/async_star_take..." Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language_2/assign_top_method_test.dart ('k') | tests/language_2/async_and_or_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/assignable_expression_test.dart
diff --git a/tests/language_2/assignable_expression_test.dart b/tests/language_2/assignable_expression_test.dart
deleted file mode 100644
index 5270bc83d3fd0e61a41946b1394821ed5eaf3211..0000000000000000000000000000000000000000
--- a/tests/language_2/assignable_expression_test.dart
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// Test to detect syntactically illegal left-hand-side (assignable)
-// expressions.
-
-class C {
- static dynamic field = 0;
-}
-
-dynamic variable = 0;
-
-main() {
- variable = 0;
- (variable) = 0; // //# 01: compile-time error
- (variable)++; // //# 02: compile-time error
- ++(variable); // //# 03: compile-time error
-
- C.field = 0;
- (C.field) = 0; // //# 11: compile-time error
- (C.field)++; // //# 12: compile-time error
- ++(C.field); // //# 13: compile-time error
-
- variable = [1, 2, 3];
- variable[0] = 0;
- (variable)[0] = 0;
- (variable[0]) = 0; // //# 21: compile-time error
- (variable[0])++; // //# 22: compile-time error
- ++(variable[0]); // //# 23: compile-time error
-
- C.field = [1, 2, 3];
- (C.field[0]) = 0; // //# 31: compile-time error
- (C.field[0])++; // //# 32: compile-time error
- ++(C.field[0]); // //# 33: compile-time error
-
- var a = 0;
- (a) = 0; // //# 41: compile-time error
- (a)++; // //# 42: compile-time error
- ++(a); // //# 43: compile-time error
-
- // Neat palindrome expression. x is assignable, ((x)) is not.
- var funcnuf = (x) => ((x))=((x)) <= (x); // //# 50: compile-time error
-}
« no previous file with comments | « tests/language_2/assign_top_method_test.dart ('k') | tests/language_2/async_and_or_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698