Index: tests/language_strong/type_promotion_closure_test.dart |
diff --git a/tests/language_strong/type_promotion_closure_test.dart b/tests/language_strong/type_promotion_closure_test.dart |
index 5b0b2c0224a25c59c7af14c56bbcdf98699a7a13..2a1660d549b78395273bcf066a2f319151b95f53 100644 |
--- a/tests/language_strong/type_promotion_closure_test.dart |
+++ b/tests/language_strong/type_promotion_closure_test.dart |
@@ -49,7 +49,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(); |
@@ -63,7 +63,7 @@ void test2() { |
} |
if (a is B) { |
print(a.a); |
- print(a.b); /// 02: static type warning |
+ print(a.b); //# 02: static type warning |
} |
} |
@@ -74,12 +74,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 |
} |
} |
@@ -90,19 +90,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); |
} |
@@ -111,7 +111,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; |
@@ -122,7 +122,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; |
} |
@@ -132,7 +132,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; |
} |
@@ -141,7 +141,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; |
} |
@@ -149,7 +149,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); |
} |
@@ -158,7 +158,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; |
} |
@@ -166,7 +166,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; |
} |
@@ -175,7 +175,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; |
} |
@@ -185,7 +185,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; |
} |