OLD | NEW |
| 1 // compile options: --closure-experimental --destructure-named-params --modules=
es6 |
1 library test; | 2 library test; |
2 import 'dart:js'; | 3 import 'dart:js'; |
3 | 4 |
4 List/*<T>*/ generic_function/*<T>*/(List/*<T>*/ items, dynamic/*=T*/ seed) { | 5 List/*<T>*/ generic_function/*<T>*/(List/*<T>*/ items, dynamic/*=T*/ seed) { |
5 var strings = items.map((i) => "$i").toList(); | 6 var strings = items.map((i) => "$i").toList(); |
6 return items; | 7 return items; |
7 } | 8 } |
8 | 9 |
9 typedef void Callback({int i}); | 10 typedef void Callback({int i}); |
10 | 11 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 57 |
57 class Baz extends Foo<int> with Bar { | 58 class Baz extends Foo<int> with Bar { |
58 Baz(int i) : super(i, 123); | 59 Baz(int i) : super(i, 123); |
59 } | 60 } |
60 | 61 |
61 void main(args) {} | 62 void main(args) {} |
62 | 63 |
63 const String some_top_level_constant = "abc"; | 64 const String some_top_level_constant = "abc"; |
64 final String some_top_level_final = "abc"; | 65 final String some_top_level_final = "abc"; |
65 String some_top_level_var = "abc"; | 66 String some_top_level_var = "abc"; |
OLD | NEW |