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

Unified Diff: tests/language_strong/type_promotion_local_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_strong/type_promotion_local_test.dart
diff --git a/tests/language_strong/type_promotion_local_test.dart b/tests/language_strong/type_promotion_local_test.dart
index 8c3a4c817bd0a43c50a3c3860c5582b9f0dcc594..03b7239712a367e21075da67c8d84312e6e70d08 100644
--- a/tests/language_strong/type_promotion_local_test.dart
+++ b/tests/language_strong/type_promotion_local_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 = "";
@@ -90,37 +94,34 @@ void main() {
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
« no previous file with comments | « tests/language_strong/type_promotion_functions_test.dart ('k') | tests/language_strong/type_promotion_logical_and_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698