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 4a0c6ae5a70f30d68f2bdac87b99e0d31f090784..c9caf0359aa9bdb9abf2336924d8605a86434a12 100644 |
--- a/tests/language/type_promotion_functions_test.dart |
+++ b/tests/language/type_promotion_functions_test.dart |
@@ -5,9 +5,7 @@ |
// Test type promotion of functions. |
class A {} |
- |
class B extends A {} |
- |
class C {} |
// We have the following more specific (<<) relations between these typedefs: |
@@ -53,8 +51,7 @@ 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 |
@@ -67,8 +64,7 @@ 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 |
@@ -88,8 +84,7 @@ 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 |
@@ -115,4 +110,4 @@ testFuncDynToA() { |
b = funcDynToA(new B()); |
c = funcDynToA(new C()); //# 07: static type warning |
} |
-} |
+} |