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

Unified Diff: tests/language/default_factory_test.dart

Issue 2770063002: Revert "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
« no previous file with comments | « tests/language/default_factory2_test.dart ('k') | tests/language/deferred_constraints_constants_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/default_factory_test.dart
diff --git a/tests/language/default_factory_test.dart b/tests/language/default_factory_test.dart
index 83682bbadf8dd0edc65d66f2f9d9707b19c572d5..820d741d9320f7a40fac26f1ccf27b2129e7b424 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);
« no previous file with comments | « tests/language/default_factory2_test.dart ('k') | tests/language/deferred_constraints_constants_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698