| Index: tests/language/final_super_field_set_test.dart
|
| diff --git a/tests/language/regress_21998_1_test.dart b/tests/language/final_super_field_set_test.dart
|
| similarity index 60%
|
| copy from tests/language/regress_21998_1_test.dart
|
| copy to tests/language/final_super_field_set_test.dart
|
| index 3237f3396629f6fd11270e1adc290bec78713958..9c3289bb1f94059cdc49e5330bfad14bb4f58d3f 100644
|
| --- a/tests/language/regress_21998_1_test.dart
|
| +++ b/tests/language/final_super_field_set_test.dart
|
| @@ -2,17 +2,19 @@
|
| // 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 'dart:math' as Math;
|
| import 'package:expect/expect.dart';
|
|
|
| -main() {
|
| - Expect.equals(4, new C().m());
|
| +class SuperClass {
|
| + final field = 0;
|
| + noSuchMethod(_) => 42;
|
| }
|
|
|
| -class C {
|
| - max(a) => a;
|
| -
|
| +class Class extends SuperClass {
|
| m() {
|
| - return max(Math.max(2, 4));
|
| + super.field = 87; /// 01: static type warning
|
| }
|
| +}
|
| +
|
| +main() {
|
| + new Class().m(); /// 01: continued
|
| }
|
|
|