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

Unified Diff: lib/core/duration.dart

Issue 10905255: Change Duration to take proper named optional parameters. (Closed) Base URL: https://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: lib/core/duration.dart
diff --git a/lib/core/duration.dart b/lib/core/duration.dart
index 91c5959633bf2806469128a6d2553cde80b9ded2..c3bf66b37cffda10e391e1e54276fdcc12b273c8 100644
--- a/lib/core/duration.dart
+++ b/lib/core/duration.dart
@@ -16,8 +16,8 @@ interface Duration extends Comparable default DurationImplementation {
* All individual parts are allowed to be negative.
* All arguments are by default 0.
*/
- const Duration([int days, int hours, int minutes, int seconds,
- int milliseconds]);
+ const Duration({int days, int hours, int minutes, int seconds,
+ int milliseconds});
bakster 2012/09/13 09:00:01 It would be great to have the default values liste
/**
* Returns this [Duration] in days. Incomplete days are discarded.

Powered by Google App Engine
This is Rietveld 408576698