| Index: tests/language/no_such_method_test.dart
|
| diff --git a/tests/language/no_such_method_test.dart b/tests/language/no_such_method_test.dart
|
| index 0bd9da381a9823f415732e29e8d963e0965a32b2..a38fe8e078d7cf313e0199c0851c7ee8bb7d3b76 100644
|
| --- a/tests/language/no_such_method_test.dart
|
| +++ b/tests/language/no_such_method_test.dart
|
| @@ -3,6 +3,13 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
| // Dart test program testing that NoSuchMethod is properly called.
|
|
|
| +class GetName {
|
| + foo({a, b}) => "foo";
|
| + moo({b}) => "moo";
|
| +}
|
| +
|
| +static String getName(im) => im.invokeOn(new GetName());
|
| +
|
| class NoSuchMethodTest {
|
|
|
| foo({a : 10, b : 20}) {
|
| @@ -10,7 +17,7 @@ class NoSuchMethodTest {
|
| }
|
|
|
| noSuchMethod(InvocationMirror im) {
|
| - Expect.equals("moo", im.memberName);
|
| + Expect.equals("moo", getName(im));
|
| Expect.equals(0, im.positionalArguments.length);
|
| Expect.equals(1, im.namedArguments.length);
|
| return foo(b:im.namedArguments["b"]);
|
|
|