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

Unified Diff: lib/corelib.dart

Issue 8399010: Fixed compiler so that it passes Switch1NegativeTest.dart. (Closed) Base URL: http://dart.googlecode.com/svn/experimental/frog/
Patch Set: '' Created 9 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
Index: lib/corelib.dart
===================================================================
--- lib/corelib.dart (revision 839)
+++ lib/corelib.dart (working copy)
@@ -92,7 +92,17 @@
final String dstName;
}
class FallThroughError {
jimhug 2011/10/27 17:45:11 This should be causing a validation error - you ca
Emily Fortuna 2011/10/27 17:59:04 This was left over when when I was testing the dar
- const FallThroughError() : super();
+ final String url;
+ final int line;
+
+ const FallThroughError(_url, _line) {
+ url = _url;
+ line = _line;
+ }
+
+ String toString() {
+ return "Switch case fall-through in $url at line $line.";
+ }
}
// Dart core library.

Powered by Google App Engine
This is Rietveld 408576698