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

Unified Diff: tests/language/named_parameters_aggregated_test.dart

Issue 10918261: Update language tests to new optional parameter syntax and semantics. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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: tests/language/named_parameters_aggregated_test.dart
===================================================================
--- tests/language/named_parameters_aggregated_test.dart (revision 12414)
+++ tests/language/named_parameters_aggregated_test.dart (working copy)
@@ -14,7 +14,7 @@
class NamedParametersAggregatedTests {
- static int F31(int a, [int b = 20, int c = 30]) {
+ static int F31(int a, {int b: 20, int c: 30}) {
return 100*(100*a + b) + c;
}
@@ -26,9 +26,9 @@
// Expect compile-time error as no default values
// are allowed in closure type.
- void InstallCallback(void cb([String msg
- = null /// 03: compile-time error
- ])) {
+ void InstallCallback(void cb({String msg
+ : null /// 03: compile-time error
+ })) {
_handler = cb;
}

Powered by Google App Engine
This is Rietveld 408576698