| 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 import "package:expect/expect.dart"; |
| 6 |
| 5 // Checks that noSuchMethod is resolved in the super class and not in the | 7 // Checks that noSuchMethod is resolved in the super class and not in the |
| 6 // current class. | 8 // current class. |
| 7 | 9 |
| 8 class C { | 10 class C { |
| 9 E e = new E(); | 11 E e = new E(); |
| 10 | 12 |
| 11 bool noSuchMethod(InvocationMirror im) { | 13 bool noSuchMethod(InvocationMirror im) { |
| 12 if (im.memberName == 'foo') { | 14 if (im.memberName == 'foo') { |
| 13 return im.positionalArguments.isEmpty && | 15 return im.positionalArguments.isEmpty && |
| 14 im.namedArguments.isEmpty && | 16 im.namedArguments.isEmpty && |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 bool boz(int a, {int c}) => a == 1 && c == 2; | 60 bool boz(int a, {int c}) => a == 1 && c == 2; |
| 59 } | 61 } |
| 60 | 62 |
| 61 main() { | 63 main() { |
| 62 var d = new D(); | 64 var d = new D(); |
| 63 Expect.isTrue(d.test1()); | 65 Expect.isTrue(d.test1()); |
| 64 Expect.isTrue(d.test2()); | 66 Expect.isTrue(d.test2()); |
| 65 Expect.isTrue(d.test3()); | 67 Expect.isTrue(d.test3()); |
| 66 Expect.isTrue(d.test4()); | 68 Expect.isTrue(d.test4()); |
| 67 } | 69 } |
| OLD | NEW |