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

Unified Diff: frog/leg/lib/mock.dart

Issue 9632018: Switch-implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Finished implementation Created 8 years, 9 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
Index: frog/leg/lib/mock.dart
diff --git a/frog/leg/lib/mock.dart b/frog/leg/lib/mock.dart
index 7d679dde9d8a0c6d661d447028dc7da2d34264af..ce86fbe718f8dbb14fbd017acfef10fb58020a9f 100644
--- a/frog/leg/lib/mock.dart
+++ b/frog/leg/lib/mock.dart
@@ -8,7 +8,11 @@
class AssertionError {}
class TypeError extends AssertionError {}
-class FallThroughError {}
+
+class FallThroughError {
+ const FallThroughError();
+ String toString() => "Switch case fall-through.";
+}
// TODO(ahe): VM specfic exception?
class InternalError {

Powered by Google App Engine
This is Rietveld 408576698