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

Unified Diff: tests/language/src/TryCatch3Test.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: tests/language/src/TryCatch3Test.dart
===================================================================
--- tests/language/src/TryCatch3Test.dart (revision 1754)
+++ tests/language/src/TryCatch3Test.dart (working copy)
@@ -9,15 +9,16 @@
}
class MyException implements TestException {
- const MyException([String this.message_ = ""]);
- String getMessage() { return message_; }
- final String message_;
+ const MyException([String message = ""]) : this._message = message;
+ String getMessage() { return _message; }
+ final String _message;
}
class MyParameterizedException<U, V> implements TestException {
- const MyParameterizedException([String this.message_ = ""]);
- String getMessage() { return message_; }
- final String message_;
+ const MyParameterizedException([String message = ""])
+ : this._message = message;
+ String getMessage() { return _message; }
+ final String _message;
}
class StackTrace {

Powered by Google App Engine
This is Rietveld 408576698