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

Unified Diff: tests/language/switch7_negative_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/language/switch7_negative_test.dart
diff --git a/tests/language/switch7_negative_test.dart b/tests/language/switch7_negative_test.dart
index c2eceb98cef1d4a7f6c56cbe4ee02371f2cadfe9..7426f411461b1b2c9af1e7de8bf845439e9f0afa 100644
--- a/tests/language/switch7_negative_test.dart
+++ b/tests/language/switch7_negative_test.dart
@@ -4,15 +4,16 @@
// Illegal to reference a labeled case stmt with break
class Switch7NegativeTest {
-
static testMain() {
- var x = 1;
- L: while (true) {
- switch (x) {
- L: case 1: // Shadowing another label is OK.
- break L; // illegal, can't reference labeled case stmt from break
- }
- }
+ var x = 1;
+ L:
+ while (true) {
+ switch (x) {
+ L:
+ case 1: // Shadowing another label is OK.
+ break L; // illegal, can't reference labeled case stmt from break
+ }
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698