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

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: 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
Index: test/codegen/closure.dart
diff --git a/test/codegen/closure.dart b/test/codegen/closure.dart
index d40e8a759476cb00dc1ce07b1106c078aeab547c..4ad603739f3387e949c6414a5654d138595cfded 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(
@@ -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";

Powered by Google App Engine
This is Rietveld 408576698