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