Index: tests/language/type_promotion_closure_test.dart |
diff --git a/tests/language/type_promotion_closure_test.dart b/tests/language/type_promotion_closure_test.dart |
index 5c594439f65d03d3f6bedf6fcbd86097fea1a7e6..56d1d5b5daa09d26c6439aa0f4315ea4a8259843 100644 |
--- a/tests/language/type_promotion_closure_test.dart |
+++ b/tests/language/type_promotion_closure_test.dart |
@@ -47,7 +47,7 @@ void test1() { |
A a = new E(); |
if (a is B) { |
print(a.a); |
- print(a.b); /// 01: static type warning |
+ print(a.b); //# 01: static type warning |
} |
void foo() { |
a = new D(); |
@@ -61,7 +61,7 @@ void test2() { |
} |
if (a is B) { |
print(a.a); |
- print(a.b); /// 02: static type warning |
+ print(a.b); //# 02: static type warning |
} |
} |
@@ -72,12 +72,12 @@ void test3() { |
} |
if (a is B) { |
print(a.a); |
- print(a.b); /// 03: static type warning |
+ print(a.b); //# 03: static type warning |
void foo() { |
a = new D(); |
} |
print(a.a); |
- print(a.b); /// 04: static type warning |
+ print(a.b); //# 04: static type warning |
} |
} |
@@ -88,19 +88,19 @@ void test3a() { |
} |
if ((((a)) is B)) { |
print(a.a); |
- print(a.b); /// 15: static type warning |
+ print(a.b); //# 15: static type warning |
void foo() { |
a = new D(); |
} |
print(a.a); |
- print(a.b); /// 16: static type warning |
+ print(a.b); //# 16: static type warning |
} |
} |
void test4() { |
A a = new E(); |
if (a is B) { |
- func(() => a.b); /// 05: ok |
+ func(() => a.b); //# 05: ok |
print(a.a); |
print(a.b); |
} |
@@ -109,7 +109,7 @@ void test4() { |
void test5() { |
A a = new E(); |
if (a is B) { |
- func(() => a.b); /// 06: static type warning |
+ func(() => a.b); //# 06: static type warning |
print(a.a); |
} |
a = null; |
@@ -120,7 +120,7 @@ void test6() { |
if (a is B) { |
func(() => a); |
print(a.a); |
- print(a.b); /// 07: static type warning |
+ print(a.b); //# 07: static type warning |
} |
a = null; |
} |
@@ -130,7 +130,7 @@ void test6a() { |
if (((a) is B)) { |
func(() => a); |
print(a.a); |
- print(a.b); /// 14: static type warning |
+ print(a.b); //# 14: static type warning |
} |
a = null; |
} |
@@ -139,7 +139,7 @@ void test7() { |
A a = new E(); |
if (a is B && func(() => a)) { |
print(a.a); |
- print(a.b); /// 08: ok |
+ print(a.b); //# 08: ok |
} |
a = null; |
} |
@@ -147,7 +147,7 @@ void test7() { |
void test8() { |
A a = new E(); |
if (a is B |
- && func(() => a.b) /// 09: static type warning |
+ && func(() => a.b) //# 09: static type warning |
) { |
print(a.a); |
} |
@@ -156,7 +156,7 @@ void test8() { |
void test9() { |
A a = new E(); |
- var b = a is B ? func(() => a.b) : false; /// 10: static type warning |
+ var b = a is B ? func(() => a.b) : false; //# 10: static type warning |
a = null; |
} |
@@ -164,7 +164,7 @@ void test10() { |
List<A> a = <E>[new E()]; |
if (a is List<B>) { |
func(() => a[0]); |
- print(a[0].b); /// 11: static type warning |
+ print(a[0].b); //# 11: static type warning |
} |
a = null; |
} |
@@ -173,7 +173,7 @@ void test11() { |
List<A> a = <E>[new E()]; |
if (a is List<B>) { |
func(() => a[0] = null); |
- print(a[0].b); /// 12: static type warning |
+ print(a[0].b); //# 12: static type warning |
} |
a = null; |
} |
@@ -183,7 +183,7 @@ void test12() { |
if (a is B) { |
func(() => a++); |
print(a.a); |
- print(a.b); /// 13: static type warning |
+ print(a.b); //# 13: static type warning |
} |
a = null; |
} |