Index: tests/language_strong/type_promotion_local_test.dart |
diff --git a/tests/language_strong/type_promotion_local_test.dart b/tests/language_strong/type_promotion_local_test.dart |
index 8c3a4c817bd0a43c50a3c3860c5582b9f0dcc594..03b7239712a367e21075da67c8d84312e6e70d08 100644 |
--- a/tests/language_strong/type_promotion_local_test.dart |
+++ b/tests/language_strong/type_promotion_local_test.dart |
@@ -7,15 +7,19 @@ |
class A { |
var a = "a"; |
} |
+ |
class B extends A { |
var b = "b"; |
} |
+ |
class C extends B { |
var c = "c"; |
} |
+ |
class D extends A { |
var d = "d"; |
} |
+ |
class E implements C, D { |
var a = ""; |
var b = ""; |
@@ -90,37 +94,34 @@ void main() { |
print(a.c); //# 19: static type warning |
print(a.d); //# 20: static type warning |
- var o1 = a is B ? |
- '${a.a}' |
- '${a.b}' |
+ var o1 = a is B |
+ ? '${a.a}' |
+ '${a.b}' |
'${a.c}' //# 21: static type warning |
'${a.d}' //# 22: static type warning |
- : |
- '${a.a}' |
+ : '${a.a}' |
'${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}' |
+ var o2 = a is C |
+ ? '${a.a}' |
+ '${a.b}' |
+ '${a.c}' |
'${a.d}' //# 26: static type warning |
- : |
- '${a.a}' |
+ : '${a.a}' |
'${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}' |
+ var o3 = a is D |
+ ? '${a.a}' |
'${a.b}' //# 30: static type warning |
'${a.c}' //# 31: static type warning |
- '${a.d}' |
- : |
- '${a.a}' |
+ '${a.d}' |
+ : '${a.a}' |
'${a.b}' //# 32: static type warning |
'${a.c}' //# 33: static type warning |
'${a.d}' //# 34: static type warning |