| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Check fail because incompatible overriding method | 4 |
| 5 // Test fails in checked mode because incompatible overriding method |
| 6 // VMOptions=--enable_type_checks |
| 5 | 7 |
| 6 class A { | 8 class A { |
| 7 foo() {} | 9 foo() {} |
| 8 } | 10 } |
| 9 | 11 |
| 10 class B extends A { | 12 class B extends A { |
| 11 foo(a) { } | 13 foo(a) { } |
| 12 } | 14 } |
| 13 | 15 |
| 14 class ClassOverrideNegativeTest { | 16 class ClassOverrideNegativeTest { |
| 15 static testMain() { | 17 static testMain() { |
| 16 } | 18 } |
| 17 } | 19 } |
| 18 | 20 |
| 19 main() { | 21 main() { |
| 20 ClassOverrideNegativeTest.testMain(); | 22 ClassOverrideNegativeTest.testMain(); |
| 21 } | 23 } |
| OLD | NEW |