Index: tests/language_strong/type_promotion_functions_test.dart |
diff --git a/tests/language_strong/type_promotion_functions_test.dart b/tests/language_strong/type_promotion_functions_test.dart |
index c9caf0359aa9bdb9abf2336924d8605a86434a12..4a0c6ae5a70f30d68f2bdac87b99e0d31f090784 100644 |
--- a/tests/language_strong/type_promotion_functions_test.dart |
+++ b/tests/language_strong/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 |
} |
-} |
+} |