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

Unified Diff: tests/language/type_promotion_parameter_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/type_promotion_multiple_test.dart ('k') | tests/language/type_variable_bounds2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_promotion_parameter_test.dart
diff --git a/tests/language/type_promotion_parameter_test.dart b/tests/language/type_promotion_parameter_test.dart
index d8e04991a27a05379705656c30e59ffa2ea23a71..8672dc875f5f0a22160cf5428a43532194cda275 100644
--- a/tests/language/type_promotion_parameter_test.dart
+++ b/tests/language/type_promotion_parameter_test.dart
@@ -7,19 +7,15 @@
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 = "";
@@ -30,7 +26,6 @@ class E implements C, D {
void main() {
test(new E());
}
-
void test(A a) {
print(a.a);
print(a.b); //# 01: static type warning
@@ -97,34 +92,37 @@ void test(A a) {
print(a.c); //# 19: static type warning
print(a.d); //# 20: static type warning
- var o1 = a is B
- ? '${a.a}'
- '${a.b}'
+ var o1 = a is B ?
+ '${a.a}'
+ '${a.b}'
'${a.c}' //# 21: static type warning
'${a.d}' //# 22: static type warning
- : '${a.a}'
+ :
+ '${a.a}'
'${a.b}' //# 23: static type warning
'${a.c}' //# 24: static type warning
'${a.d}' //# 25: static type warning
;
- var o2 = a is C
- ? '${a.a}'
- '${a.b}'
- '${a.c}'
+ var o2 = a is C ?
+ '${a.a}'
+ '${a.b}'
+ '${a.c}'
'${a.d}' //# 26: static type warning
- : '${a.a}'
+ :
+ '${a.a}'
'${a.b}' //# 27: static type warning
'${a.c}' //# 28: static type warning
'${a.d}' //# 29: static type warning
;
- var o3 = a is D
- ? '${a.a}'
+ var o3 = a is D ?
+ '${a.a}'
'${a.b}' //# 30: static type warning
'${a.c}' //# 31: static type warning
- '${a.d}'
- : '${a.a}'
+ '${a.d}'
+ :
+ '${a.a}'
'${a.b}' //# 32: static type warning
'${a.c}' //# 33: static type warning
'${a.d}' //# 34: static type warning
@@ -160,12 +158,11 @@ void test(A a) {
print(a.c); //# 41: static type warning
print(a.d);
}
- if (a is D &&
- a.a == ""
+ if (a is D
+ && a.a == ""
&& a.b == "" // //# 42: static type warning
&& a.c == "" // //# 43: static type warning
- &&
- a.d == "") {
+ && a.d == "") {
print(a.a);
print(a.b); //# 44: static type warning
print(a.c); //# 45: static type warning
@@ -175,17 +172,15 @@ void test(A a) {
&& a.b == "" //# 46: static type warning
&& a.c == "" //# 47: static type warning
&& a.d == "" //# 48: static type warning
- &&
- a is B &&
- a.a == "" &&
- a.b == ""
+ && a is B
+ && a.a == ""
+ && a.b == ""
&& a.c == "" //# 49: static type warning
&& a.d == "" //# 50: static type warning
- &&
- a is C &&
- a.a == "" &&
- a.b == "" &&
- a.c == ""
+ && a is C
+ && a.a == ""
+ && a.b == ""
+ && a.c == ""
&& a.d == "" //# 51: static type warning
) {
print(a.a);
« no previous file with comments | « tests/language/type_promotion_multiple_test.dart ('k') | tests/language/type_variable_bounds2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698