| Index: tests/language/final_initializer_instance_reference_test.dart
|
| diff --git a/tests/language/conflicting_type_variable_and_setter_test.dart b/tests/language/final_initializer_instance_reference_test.dart
|
| similarity index 52%
|
| copy from tests/language/conflicting_type_variable_and_setter_test.dart
|
| copy to tests/language/final_initializer_instance_reference_test.dart
|
| index 2aca0c32b659b1f1f213c4744ab50c6753befbbc..65580e778d50a0ee3c60f1732a353617105fc898 100644
|
| --- a/tests/language/conflicting_type_variable_and_setter_test.dart
|
| +++ b/tests/language/final_initializer_instance_reference_test.dart
|
| @@ -2,18 +2,16 @@
|
| // 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.
|
|
|
| -import "package:expect/expect.dart";
|
| +// Dart2js regression test. Error in initializer might be report with the wrong
|
| +// current element.
|
|
|
| -class C<D> {
|
| - void set D(int value) {
|
| - field = value;
|
| - }
|
| +class C {
|
| + const C();
|
|
|
| - int field;
|
| + final x = 1;
|
| + final y = x; /// 01: compile-time error
|
| }
|
|
|
| main() {
|
| - C<int> c = new C<int>();
|
| - c.D = 1;
|
| - Expect.equals(c.field, 1);
|
| + const C().y; /// 01: continued
|
| }
|
|
|