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

Unified Diff: corelib/src/implementation/exceptions.dart

Issue 8619008: Initializing formals can't be optional parameters (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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: corelib/src/implementation/exceptions.dart
===================================================================
--- corelib/src/implementation/exceptions.dart (revision 1754)
+++ corelib/src/implementation/exceptions.dart (working copy)
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
class ExceptionImplementation implements Exception {
- const ExceptionImplementation([this._msg = null]);
+ const ExceptionImplementation([msg = null]) : _msg = msg;
String toString() => (_msg === null) ? "Exception" : "Exception: $_msg";
final _msg;
}
« no previous file with comments | « corelib/src/exceptions.dart ('k') | runtime/bin/file.dart » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698