OLD | NEW |
| 1 // compile options: --modules=es6 |
1 library test; | 2 library test; |
2 | 3 |
3 import 'dart:js'; | |
4 | |
5 typedef void Callback({int i}); | 4 typedef void Callback({int i}); |
6 | 5 |
7 class A {} | 6 class A {} |
8 class _A {} | 7 class _A {} |
9 class B<T> {} | 8 class B<T> {} |
10 class _B<T> {} | 9 class _B<T> {} |
11 | 10 |
12 f() {} | 11 f() {} |
13 _f() {} | 12 _f() {} |
14 | 13 |
15 const String constant = "abc"; | 14 const String constant = "abc"; |
16 final String finalConstant = "abc"; | 15 final String finalConstant = "abc"; |
17 final String lazy = (() { | 16 final String lazy = (() { |
18 print('lazy'); | 17 print('lazy'); |
19 return "abc"; | 18 return "abc"; |
20 })(); | 19 })(); |
21 String mutable = "abc"; | 20 String mutable = "abc"; |
22 String lazyMutable = (() { | 21 String lazyMutable = (() { |
23 print('lazyMutable'); | 22 print('lazyMutable'); |
24 return "abc"; | 23 return "abc"; |
25 })(); | 24 })(); |
OLD | NEW |