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

Unified Diff: sdk/lib/core/exceptions.dart

Issue 11365226: Exception no longer an interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | tests/language/ct_const2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/exceptions.dart
diff --git a/sdk/lib/core/exceptions.dart b/sdk/lib/core/exceptions.dart
index 2d2bc436dd496be9903aa7ac5529310df31ee8d4..61f3f89def79b09ac9016b15ec8100704051971a 100644
--- a/sdk/lib/core/exceptions.dart
+++ b/sdk/lib/core/exceptions.dart
@@ -8,10 +8,8 @@
* Interface implemented by all core library exceptions.
* Defaults to an implementation that only carries a simple message.
*/
-interface Exception default _ExceptionImplementation {
- // TODO(lrn): This should be an abstract class, but we don't yet support
- // redirecting factory constructors.
- const Exception([var message]);
+abstract class Exception {
+ const factory Exception([var message]) = _ExceptionImplementation;
}
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | tests/language/ct_const2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698