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

Unified Diff: corelib/src/exceptions.dart

Issue 9307067: Make IllegalArgumentException more forgiving about its arguments. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/exceptions.dart
===================================================================
--- corelib/src/exceptions.dart (revision 3850)
+++ corelib/src/exceptions.dart (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -71,9 +71,9 @@
class IllegalArgumentException implements Exception {
- const IllegalArgumentException([args = ""]) : _args = args;
- String toString() => "Illegal argument(s): $_args";
- final String _args;
+ const IllegalArgumentException([arg = ""]) : _arg = arg;
+ String toString() => "Illegal argument(s): $_arg";
+ final _arg;
siva 2012/02/02 19:55:24 What is our normal style in library code, if we do
turnidge 2012/02/13 21:13:58 I recall that it didn't let me use "var" here, but
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698