OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 // test w/ `dart test/util/solo_test.dart overriden_field` |
| 6 |
| 7 class Base { |
| 8 Object field = 'lorem'; |
| 9 |
| 10 Object something = 'change'; |
| 11 } |
| 12 |
| 13 class Bad1 extends Base { |
| 14 @override |
| 15 final field = 'ipsum'; // LINT |
| 16 } |
| 17 |
| 18 class Bad2 extends Base { |
| 19 @override |
| 20 Object something = 'done'; // LINT |
| 21 } |
| 22 |
| 23 class Ok extends Base { |
| 24 Object newField; // OK |
| 25 |
| 26 final Object newFinal = 'ignore'; // OK |
| 27 } |
OLD | NEW |