| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Tests that we can call functions through getters which return null. | 5 // Tests that we can call functions through getters which return null. |
| 6 | 6 |
| 7 final TOP_LEVEL_NULL = null; | 7 const TOP_LEVEL_NULL = null; |
| 8 | 8 |
| 9 var topLevel; | 9 var topLevel; |
| 10 | 10 |
| 11 class CallThroughNullGetterTest { | 11 class CallThroughNullGetterTest { |
| 12 | 12 |
| 13 static void testMain() { | 13 static void testMain() { |
| 14 testTopLevel(); | 14 testTopLevel(); |
| 15 testField(); | 15 testField(); |
| 16 testGetter(); | 16 testGetter(); |
| 17 testMethod(); | 17 testMethod(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 A() { } | 86 A() { } |
| 87 var field; | 87 var field; |
| 88 get getter { return field; } | 88 get getter { return field; } |
| 89 method() { return field; } | 89 method() { return field; } |
| 90 | 90 |
| 91 } | 91 } |
| 92 | 92 |
| 93 main() { | 93 main() { |
| 94 CallThroughNullGetterTest.testMain(); | 94 CallThroughNullGetterTest.testMain(); |
| 95 } | 95 } |
| OLD | NEW |