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

Unified Diff: tests/language/function_type_parameter_test.dart

Issue 11151015: Landing Peter's fix for function-typed field initializer arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file. Created 8 years, 2 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 | « lib/compiler/implementation/closure.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/function_type_parameter_test.dart
diff --git a/tests/language/function_type_parameter_test.dart b/tests/language/function_type_parameter_test.dart
index c839a031f5c4dc85b135eda531ac7a31ec50019a..3f23dafa3018ee710a9315cddc364f7aebd84246 100644
--- a/tests/language/function_type_parameter_test.dart
+++ b/tests/language/function_type_parameter_test.dart
@@ -6,6 +6,8 @@
// default value.
class A {
+ final f;
+ A(int this.f());
static Function func;
@@ -22,4 +24,6 @@ main() {
Expect.equals("1234", A.func(1230 + 4));
A.SetFunc();
Expect.equals(null, A.func);
+
+ Expect.equals(42, new A(() => 42).f());
}
« no previous file with comments | « lib/compiler/implementation/closure.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698