| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, 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 // Checks that noSuchMethod is resolved in the super class and not in the |
| 6 // current class. |
| 7 |
| 8 class C { |
| 9 // bool noSuchMethod(InvocationMirror im) { // Issue 3622 |
| 10 bool noSuchMethod(String function_name, List args) { |
| 11 return true; |
| 12 } |
| 13 } |
| 14 |
| 15 class D extends C { |
| 16 // bool noSuchMethod(InvocationMirror im) { // Issue 3622 |
| 17 bool noSuchMethod(String function_name, List args) { |
| 18 return false; |
| 19 } |
| 20 test() { |
| 21 return super.foo(); |
| 22 } |
| 23 } |
| 24 |
| 25 main() { |
| 26 var d = new D(); |
| 27 Expect.isTrue(d.test()); |
| 28 } |
| OLD | NEW |