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