Index: test/codegen/closure.dart |
diff --git a/test/codegen/closure.dart b/test/codegen/closure.dart |
index d40e8a759476cb00dc1ce07b1106c078aeab547c..d909a1d0d66a5aea865e721a6a7c1d0bbc4768e1 100644 |
--- a/test/codegen/closure.dart |
+++ b/test/codegen/closure.dart |
@@ -1,6 +1,10 @@ |
library test; |
import 'dart:js'; |
+List/*<T>*/ generic_function/*<T>*/(List/*<T>*/ items, dynamic/*=T*/ seed) { |
+ var strings = items.map((i) => "$i").toList(); |
+ return items; |
+} |
typedef void Callback({int i}); |
@@ -15,7 +19,7 @@ class Foo<T> { |
factory Foo.build() => new Foo(1, null); |
untyped_method(a, b) {} |
- |
+ |
T pass(T t) => t; |
String typed_method( |
@@ -25,9 +29,9 @@ class Foo<T> { |
return ''; |
} |
- optional_params(a, [b, c]) {} |
+ optional_params(a, [b, int c]) {} |
- static named_params(a, {b, c}) {} |
+ static named_params(a, {b, int c}) {} |
nullary_method() {} |
@@ -35,6 +39,8 @@ class Foo<T> { |
cb(i: i); |
} |
+ run(List a, String b, List c(String d), List<int> e(f(g)), {Map<Map, Map> h}) {} |
+ |
String get prop => null; |
set prop(String value) {} |
@@ -56,4 +62,4 @@ void main(args) {} |
const String some_top_level_constant = "abc"; |
final String some_top_level_final = "abc"; |
-String some_top_level_var = "abc"; |
+String some_top_level_var = "abc"; |