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