| 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 // Bind a method to a variable that can be invoked as a function | 5 // Bind a method to a variable that can be invoked as a function |
| 6 | 6 |
| 7 class A { | 7 class A { |
| 8 int a; | 8 int a; |
| 9 | 9 |
| 10 static var func; | 10 static var func; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 | 139 |
| 140 static testMain() { | 140 static testMain() { |
| 141 test(); | 141 test(); |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 | 144 |
| 145 main() { | 145 main() { |
| 146 MethodBindingTest.testMain(); | 146 MethodBindingTest.testMain(); |
| 147 } | 147 } |
| OLD | NEW |