Chromium Code Reviews| Index: tests/language/assignable_expression_test.dart |
| diff --git a/tests/language/assignable_expression_test.dart b/tests/language/assignable_expression_test.dart |
| index c29e3662335b8b910e2cff1fa895b41cf41c08ac..e8aaad8787f7a523988a87dbf00d65e961123fa6 100644 |
| --- a/tests/language/assignable_expression_test.dart |
| +++ b/tests/language/assignable_expression_test.dart |
| @@ -13,31 +13,31 @@ var tl_static_var = 0; |
| main() { |
| tl_static_var = 0; |
| - (tl_static_var) = 0; /// 01: compile-time error |
| - (tl_static_var)++; /// 02: compile-time error |
| - ++(tl_static_var); /// 03: compile-time error |
| + (tl_static_var) = 0; // /// 01: compile-time error |
| + (tl_static_var)++; // /// 02: compile-time error |
| + ++(tl_static_var); // /// 03: compile-time error |
| C.static_field = 0; |
| (C.static_field) = 0; /// 11: compile-time error |
|
sra1
2017/03/21 01:43:48
//
Jacob
2017/03/21 02:25:36
Done.
|
| - (C.static_field)++; /// 12: compile-time error |
| - ++(C.static_field); /// 13: compile-time error |
| + (C.static_field)++; // /// 12: compile-time error |
| + ++(C.static_field); // /// 13: compile-time error |
| tl_static_var = [1, 2, 3]; |
| tl_static_var[0] = 0; |
| (tl_static_var)[0] = 0; |
| - (tl_static_var[0]) = 0; /// 21: compile-time error |
| - (tl_static_var[0])++; /// 22: compile-time error |
| - ++(tl_static_var[0]); /// 23: compile-time error |
| + (tl_static_var[0]) = 0; // /// 21: compile-time error |
| + (tl_static_var[0])++; // /// 22: compile-time error |
| + ++(tl_static_var[0]); // /// 23: compile-time error |
| C.static_field = [1, 2, 3]; |
| (C.static_field[0]) = 0; /// 31: compile-time error |
| - (C.static_field[0])++; /// 32: compile-time error |
| - ++(C.static_field[0]); /// 33: compile-time error |
| + (C.static_field[0])++; // /// 32: compile-time error |
| + ++(C.static_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 |
| + (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 |