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

Unified Diff: tests/language/type_promotion_functions_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
« no previous file with comments | « tests/language/type_promotion_closure_test.dart ('k') | tests/language/type_promotion_local_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_promotion_functions_test.dart
diff --git a/tests/language/type_promotion_functions_test.dart b/tests/language/type_promotion_functions_test.dart
index c9caf0359aa9bdb9abf2336924d8605a86434a12..4a0c6ae5a70f30d68f2bdac87b99e0d31f090784 100644
--- a/tests/language/type_promotion_functions_test.dart
+++ b/tests/language/type_promotion_functions_test.dart
@@ -5,7 +5,9 @@
// Test type promotion of functions.
class A {}
+
class B extends A {}
+
class C {}
// We have the following more specific (<<) relations between these typedefs:
@@ -51,7 +53,8 @@ testFuncDynToDyn() {
b = funcDynToDyn(new B());
c = funcDynToDyn(new C());
- if (funcDynToDyn is FuncAtoDyn) { // Promotion: FuncAtoDyn << FuncDynToDyn.
+ if (funcDynToDyn is FuncAtoDyn) {
+ // Promotion: FuncAtoDyn << FuncDynToDyn.
a = funcDynToDyn(new A());
b = funcDynToDyn(new B());
c = funcDynToDyn(new C()); //# 09: static type warning
@@ -64,7 +67,8 @@ testFuncDynToDyn() {
c = funcDynToDyn(new C()); //# 14: static type warning
}
- if (funcDynToDyn is FuncDynToA) { // Promotion: FuncDynToA << FuncDynToDyn.
+ if (funcDynToDyn is FuncDynToA) {
+ // Promotion: FuncDynToA << FuncDynToDyn.
a = funcDynToDyn(new A());
b = funcDynToDyn(new B());
c = funcDynToDyn(new C()); //# 10: static type warning
@@ -84,7 +88,8 @@ testFuncDynToVoid() {
c = funcDynToVoid(new C());
}
- if (funcDynToVoid is FuncDynToA) { // Promotion: FuncDynToA << FuncDynToVoid.
+ if (funcDynToVoid is FuncDynToA) {
+ // Promotion: FuncDynToA << FuncDynToVoid.
a = funcDynToVoid(new A());
b = funcDynToVoid(new B());
c = funcDynToVoid(new C()); //# 05: static type warning
@@ -110,4 +115,4 @@ testFuncDynToA() {
b = funcDynToA(new B());
c = funcDynToA(new C()); //# 07: static type warning
}
-}
+}
« no previous file with comments | « tests/language/type_promotion_closure_test.dart ('k') | tests/language/type_promotion_local_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698