| Index: tests/language/method_invocation_test.dart
|
| ===================================================================
|
| --- tests/language/method_invocation_test.dart (revision 24455)
|
| +++ tests/language/method_invocation_test.dart (working copy)
|
| @@ -14,6 +14,10 @@
|
| }
|
| }
|
|
|
| +class B {
|
| + get f { throw 123; }
|
| +}
|
| +
|
| class MethodInvocationTest {
|
| static void testNullReceiver() {
|
| A a = new A();
|
| @@ -28,8 +32,18 @@
|
| Expect.equals(true, exceptionCaught);
|
| }
|
|
|
| + static testGetterMethodInvocation() {
|
| + var b = new B();
|
| + try {
|
| + b.f();
|
| + } catch (e) {
|
| + Expect.equals(123, e);
|
| + }
|
| + }
|
| +
|
| static void testMain() {
|
| testNullReceiver();
|
| + testGetterMethodInvocation();
|
| }
|
| }
|
|
|
|
|