| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 foo(int arg) {} | 5 library isolate.create.error_helper5_lib; |
| 6 | 6 |
| 7 class C { | 7 // This library has a main that is not a function, |
| 8 C(int arg) {} | 8 // but is a constant with a function type. |
| 9 static foo(int arg) {} | |
| 10 } | |
| 11 | 9 |
| 12 var a; | |
| 13 | 10 |
| 14 int get getter => 42; | 11 void mymain() { print("Not call mymain function!"); } |
| 15 | 12 |
| 16 void set setter(int arg) { | 13 const main = mymain; |
| 17 a = 10; | |
| 18 } | |
| 19 | |
| 20 var list = new List(); | |
| 21 | |
| 22 var closure = (int arg) => 3; | |
| OLD | NEW |