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

Unified Diff: lib/core/errors.dart

Issue 11013010: Throw AbstractClassInstantiationError on abstract class instantiation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed passing tests from status file. Fixed order of class elements. Reverted source code formatt… Created 8 years, 2 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 | « lib/compiler/implementation/ssa/builder.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/errors.dart
diff --git a/lib/core/errors.dart b/lib/core/errors.dart
index 85e9f937181675ac573104c004fd35b764896051..cef165e44728c97eb978ecbc1e66d28af62ca70f 100644
--- a/lib/core/errors.dart
+++ b/lib/core/errors.dart
@@ -46,7 +46,10 @@ class FallThroughError implements Error {
const FallThroughError();
}
-class AbstractClassInstantiationError {
+class AbstractClassInstantiationError implements Error {
+ final String _className;
+ const AbstractClassInstantiationError(String this._className);
+ String toString() => "Cannot instantiate abstract class: '$_className'";
}
/**
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698