OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library GetterSetterInLib3; | 5 library tearoff_basic_lib; |
6 | 6 |
7 var _f = 33; | 7 cfunc() => "cfunc"; |
8 | 8 |
9 set bar(a) { _f = a; } | 9 set cset(a) { cvar = a; } |
10 | 10 |
11 get bar => _f; | 11 get cget => "cget"; |
| 12 |
| 13 var cvar = 1+2+3; |
| 14 |
| 15 final cfinvar = "set in stone"; |
| 16 |
| 17 class ZZ { } |
OLD | NEW |