| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class A { | 5 class A { |
| 6 var x; | 6 var x; |
| 7 } | 7 } |
| 8 | 8 |
| 9 void test_closure_with_mutate() { | 9 void test_closure_with_mutate() { |
| 10 var a = new A(); | 10 var a = new A(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 print(b); | 61 print(b); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void test_VariableDeclaration_first() { | 64 void test_VariableDeclaration_first() { |
| 65 var a = [] | 65 var a = [] |
| 66 ..length = 2 | 66 ..length = 2 |
| 67 ..add(3), | 67 ..add(3), |
| 68 b = 2; | 68 b = 2; |
| 69 print(a); | 69 print(a); |
| 70 } | 70 } |
| 71 |
| 72 class Base<T> { |
| 73 final List<T> x = <T>[]; |
| 74 } |
| 75 |
| 76 class Foo extends Base<int> { |
| 77 void test_final_field_generic(t) { |
| 78 x..add(1)..add(2)..add(3)..add(4); |
| 79 } |
| 80 } |
| OLD | NEW |