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

Unified Diff: tests/language/type_promotion_multiple_test.dart

Issue 2774783002: Re-land "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/type_promotion_multiple_test.dart
diff --git a/tests/language/type_promotion_multiple_test.dart b/tests/language/type_promotion_multiple_test.dart
index d376f467cef7d00aa7a1dc998c4da9a6cc578f64..7e289bedb175e77c178a5190f6b0abd4796647bf 100644
--- a/tests/language/type_promotion_multiple_test.dart
+++ b/tests/language/type_promotion_multiple_test.dart
@@ -7,15 +7,19 @@
class A {
var a = "a";
}
+
class B extends A {
var b = "b";
}
+
class C extends B {
var c = "c";
}
+
class D extends A {
var d = "d";
}
+
class E implements C, D {
var a = "";
var b = "";
@@ -26,6 +30,7 @@ class E implements C, D {
void main() {
test(new E());
}
+
void test(A a1) {
A a2 = new E();
print(a1.a);
@@ -62,21 +67,20 @@ void test(A a1) {
}
}
- var o1 = a1 is B && a2 is C ?
- '${a1.a}'
- '${a1.b}'
+ var o1 = a1 is B && a2 is C
+ ? '${a1.a}'
+ '${a1.b}'
'${a1.c}' //# 12: static type warning
'${a1.d}' //# 13: static type warning
- '${a2.a}'
- '${a2.b}'
- '${a2.c}'
+ '${a2.a}'
+ '${a2.b}'
+ '${a2.c}'
'${a2.d}' //# 14: static type warning
- :
- '${a1.a}'
+ : '${a1.a}'
'${a1.b}' //# 15: static type warning
'${a1.c}' //# 16: static type warning
'${a1.d}' //# 17: static type warning
- '${a2.a}'
+ '${a2.a}'
'${a2.b}' //# 18: static type warning
'${a2.c}' //# 19: static type warning
'${a2.d}' //# 20: static type warning
« no previous file with comments | « tests/language/type_promotion_more_specific_test.dart ('k') | tests/language/type_promotion_parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698