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

Unified Diff: tests/language/default_factory_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 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: tests/language/default_factory_test.dart
diff --git a/tests/language/default_factory_test.dart b/tests/language/default_factory_test.dart
index 820d741d9320f7a40fac26f1ccf27b2129e7b424..83682bbadf8dd0edc65d66f2f9d9707b19c572d5 100644
--- a/tests/language/default_factory_test.dart
+++ b/tests/language/default_factory_test.dart
@@ -10,24 +10,24 @@ abstract class Vehicle {
factory Vehicle() = GoogleOne.Vehicle; //# 01: static type warning
}
-
class Bike implements Vehicle, GoogleOne {
Bike.redOne() {}
}
-
abstract class SpaceShip {
factory SpaceShip() = GoogleOne;
}
-
class GoogleOne implements SpaceShip {
GoogleOne.internal_() {}
- factory GoogleOne() { return new GoogleOne.internal_(); }
- factory GoogleOne.Vehicle() { return new Bike.redOne(); }
+ factory GoogleOne() {
+ return new GoogleOne.internal_();
+ }
+ factory GoogleOne.Vehicle() {
+ return new Bike.redOne();
+ }
}
-
main() {
Expect.equals(true, (new Bike.redOne()) is Bike);
Expect.equals(true, (new SpaceShip()) is GoogleOne);

Powered by Google App Engine
This is Rietveld 408576698