| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Test static warnings for method overrides. | 5 // Test static warnings for method overrides. |
| 6 | 6 |
| 7 class A { | 7 class A { |
| 8 method1() => null; /// 01: ok | 8 method1() => null; /// 01: ok |
| 9 method2(a) => null; /// 02: ok | 9 method2(a) => null; /// 02: ok |
| 10 method3(a, b, c, d) => null; /// 03: ok | 10 method3(a, b, c, d) => null; /// 03: ok |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 class SubClass extends Class { | 92 class SubClass extends Class { |
| 93 method31(double a) => null; /// 31: continued | 93 method31(double a) => null; /// 31: continued |
| 94 method32(String a) => null; /// 32: continued | 94 method32(String a) => null; /// 32: continued |
| 95 method33(double a) => null; /// 33: continued | 95 method33(double a) => null; /// 33: continued |
| 96 } | 96 } |
| 97 | 97 |
| 98 main() { | 98 main() { |
| 99 new SubClass(); | 99 new SubClass(); |
| 100 } | 100 } |
| OLD | NEW |