Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: test/codegen/closure.dart

Issue 1676463002: Type annotations instead of closure comments. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged master Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/closure/closure_annotation_test.dart ('k') | test/codegen/expect/closure.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
« no previous file with comments | « test/closure/closure_annotation_test.dart ('k') | test/codegen/expect/closure.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698