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

Unified Diff: tests/language/src/NamedParametersTest.dart

Issue 9252027: Fix named parameter function calls (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/NamedParametersTest.dart
===================================================================
--- tests/language/src/NamedParametersTest.dart (revision 3404)
+++ tests/language/src/NamedParametersTest.dart (working copy)
@@ -108,6 +108,8 @@
}
}
+hello(msg, to, [from]) => '${from} sent ${msg} to ${to}';
+message() => hello("gladiolas", "possums", from: "Edna");
main() {
NamedParametersTest.testMain();
@@ -117,4 +119,5 @@
var c = new C();
Expect.equals(100, c.mul(10));
Expect.equals(1000, c.mul(10, 100));
+ Expect.equals("Edna sent gladiolas to possums", message());
}
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698