Index: tests/language_strong/type_promotion_parameter_test.dart |
diff --git a/tests/language_strong/type_promotion_parameter_test.dart b/tests/language_strong/type_promotion_parameter_test.dart |
index 6fe7eccc0963a7a70622829add686c01173ba99b..fb111d193c1725f82c24e1f1b2f3ab55dc4df409 100644 |
--- a/tests/language_strong/type_promotion_parameter_test.dart |
+++ b/tests/language_strong/type_promotion_parameter_test.dart |
@@ -28,176 +28,176 @@ void main() { |
} |
void test(A a) { |
print(a.a); |
- print(a.b); /// 01: static type warning |
- print(a.c); /// 02: static type warning |
- print(a.d); /// 03: static type warning |
+ print(a.b); //# 01: static type warning |
+ print(a.c); //# 02: static type warning |
+ print(a.d); //# 03: static type warning |
if (a is B) { |
print(a.a); |
print(a.b); |
- print(a.c); /// 04: static type warning |
- print(a.d); /// 05: static type warning |
+ print(a.c); //# 04: static type warning |
+ print(a.d); //# 05: static type warning |
if (a is C) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 06: static type warning |
+ print(a.d); //# 06: static type warning |
} |
print(a.a); |
print(a.b); |
- print(a.c); /// 07: static type warning |
- print(a.d); /// 08: static type warning |
+ print(a.c); //# 07: static type warning |
+ print(a.d); //# 08: static type warning |
} |
if (a is C) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 09: static type warning |
+ print(a.d); //# 09: static type warning |
if (a is B) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 10: static type warning |
+ print(a.d); //# 10: static type warning |
} |
if (a is D) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 11: static type warning |
+ print(a.d); //# 11: static type warning |
} |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 12: static type warning |
+ print(a.d); //# 12: static type warning |
} |
print(a.a); |
- print(a.b); /// 13: static type warning |
- print(a.c); /// 14: static type warning |
- print(a.d); /// 15: static type warning |
+ print(a.b); //# 13: static type warning |
+ print(a.c); //# 14: static type warning |
+ print(a.d); //# 15: static type warning |
if (a is D) { |
print(a.a); |
- print(a.b); /// 16: static type warning |
- print(a.c); /// 17: static type warning |
+ print(a.b); //# 16: static type warning |
+ print(a.c); //# 17: static type warning |
print(a.d); |
} |
print(a.a); |
- print(a.b); /// 18: static type warning |
- print(a.c); /// 19: static type warning |
- print(a.d); /// 20: static type warning |
+ print(a.b); //# 18: static type warning |
+ print(a.c); //# 19: static type warning |
+ print(a.d); //# 20: static type warning |
var o1 = a is B ? |
'${a.a}' |
'${a.b}' |
- '${a.c}' /// 21: static type warning |
- '${a.d}' /// 22: static type warning |
+ '${a.c}' //# 21: static type warning |
+ '${a.d}' //# 22: static type warning |
: |
'${a.a}' |
- '${a.b}' /// 23: static type warning |
- '${a.c}' /// 24: static type warning |
- '${a.d}' /// 25: static type warning |
+ '${a.b}' //# 23: static type warning |
+ '${a.c}' //# 24: static type warning |
+ '${a.d}' //# 25: static type warning |
; |
var o2 = a is C ? |
'${a.a}' |
'${a.b}' |
'${a.c}' |
- '${a.d}' /// 26: static type warning |
+ '${a.d}' //# 26: static type warning |
: |
'${a.a}' |
- '${a.b}' /// 27: static type warning |
- '${a.c}' /// 28: static type warning |
- '${a.d}' /// 29: static type warning |
+ '${a.b}' //# 27: static type warning |
+ '${a.c}' //# 28: static type warning |
+ '${a.d}' //# 29: static type warning |
; |
var o3 = a is D ? |
'${a.a}' |
- '${a.b}' /// 30: static type warning |
- '${a.c}' /// 31: static type warning |
+ '${a.b}' //# 30: static type warning |
+ '${a.c}' //# 31: static type warning |
'${a.d}' |
: |
'${a.a}' |
- '${a.b}' /// 32: static type warning |
- '${a.c}' /// 33: static type warning |
- '${a.d}' /// 34: static type warning |
+ '${a.b}' //# 32: static type warning |
+ '${a.c}' //# 33: static type warning |
+ '${a.d}' //# 34: static type warning |
; |
if (a is B && a is B) { |
print(a.a); |
print(a.b); |
- print(a.c); /// 35: static type warning |
- print(a.d); /// 36: static type warning |
+ print(a.c); //# 35: static type warning |
+ print(a.d); //# 36: static type warning |
} |
if (a is B && a is C) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 37: static type warning |
+ print(a.d); //# 37: static type warning |
} |
if (a is C && a is B) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 38: static type warning |
+ print(a.d); //# 38: static type warning |
} |
if (a is C && a is D) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 39: static type warning |
+ print(a.d); //# 39: static type warning |
} |
if (a is D && a is C) { |
print(a.a); |
- print(a.b); /// 40: static type warning |
- print(a.c); /// 41: static type warning |
+ print(a.b); //# 40: static type warning |
+ print(a.c); //# 41: static type warning |
print(a.d); |
} |
if (a is D |
&& a.a == "" |
- && a.b == "" /// 42: static type warning |
- && a.c == "" /// 43: static type warning |
+ && a.b == "" //# 42: static type warning |
+ && a.c == "" //# 43: static type warning |
&& a.d == "") { |
print(a.a); |
- print(a.b); /// 44: static type warning |
- print(a.c); /// 45: static type warning |
+ print(a.b); //# 44: static type warning |
+ print(a.c); //# 45: static type warning |
print(a.d); |
} |
if (a.a == "" |
- && a.b == "" /// 46: static type warning |
- && a.c == "" /// 47: static type warning |
- && a.d == "" /// 48: static type warning |
+ && a.b == "" //# 46: static type warning |
+ && a.c == "" //# 47: static type warning |
+ && a.d == "" //# 48: static type warning |
&& a is B |
&& a.a == "" |
&& a.b == "" |
- && a.c == "" /// 49: static type warning |
- && a.d == "" /// 50: static type warning |
+ && a.c == "" //# 49: static type warning |
+ && a.d == "" //# 50: static type warning |
&& a is C |
&& a.a == "" |
&& a.b == "" |
&& a.c == "" |
- && a.d == "" /// 51: static type warning |
+ && a.d == "" //# 51: static type warning |
) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 52: static type warning |
+ print(a.d); //# 52: static type warning |
} |
if ((a is B)) { |
print(a.a); |
print(a.b); |
- print(a.c); /// 54: static type warning |
- print(a.d); /// 55: static type warning |
+ print(a.c); //# 54: static type warning |
+ print(a.d); //# 55: static type warning |
} |
if ((a is B && (a) is C) && a is B) { |
print(a.a); |
print(a.b); |
print(a.c); |
- print(a.d); /// 56: static type warning |
+ print(a.d); //# 56: static type warning |
} |
} |