| 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 import "package:expect/expect.dart"; |
| 6 |
| 5 // Tests that we can call functions through getters which return null. | 7 // Tests that we can call functions through getters which return null. |
| 6 | 8 |
| 7 const TOP_LEVEL_NULL = null; | 9 const TOP_LEVEL_NULL = null; |
| 8 | 10 |
| 9 var topLevel; | 11 var topLevel; |
| 10 | 12 |
| 11 class CallThroughNullGetterTest { | 13 class CallThroughNullGetterTest { |
| 12 | 14 |
| 13 static void testMain() { | 15 static void testMain() { |
| 14 testTopLevel(); | 16 testTopLevel(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 A() { } | 62 A() { } |
| 61 var field; | 63 var field; |
| 62 get getter { return field; } | 64 get getter { return field; } |
| 63 method() { return field; } | 65 method() { return field; } |
| 64 | 66 |
| 65 } | 67 } |
| 66 | 68 |
| 67 main() { | 69 main() { |
| 68 CallThroughNullGetterTest.testMain(); | 70 CallThroughNullGetterTest.testMain(); |
| 69 } | 71 } |
| OLD | NEW |