| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Test type promotion of parameters. | 5 // Test type promotion of parameters. |
| 6 | 6 |
| 7 class A { | 7 class A { |
| 8 var a = "a"; | 8 var a = "a"; |
| 9 } | 9 } |
| 10 class B extends A { | 10 class B extends A { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 && a.c == "" | 183 && a.c == "" |
| 184 && a.d == "" /// 51: static type warning | 184 && a.d == "" /// 51: static type warning |
| 185 ) { | 185 ) { |
| 186 print(a.a); | 186 print(a.a); |
| 187 print(a.b); | 187 print(a.b); |
| 188 print(a.c); | 188 print(a.c); |
| 189 print(a.d); /// 52: static type warning | 189 print(a.d); /// 52: static type warning |
| 190 } | 190 } |
| 191 if ((a is B)) { | 191 if ((a is B)) { |
| 192 print(a.a); | 192 print(a.a); |
| 193 print(a.b); /// 53: static type warning | 193 print(a.b); |
| 194 print(a.c); /// 54: static type warning | 194 print(a.c); /// 54: static type warning |
| 195 print(a.d); /// 55: static type warning | 195 print(a.d); /// 55: static type warning |
| 196 } | 196 } |
| 197 if ((a is B && (a) is C) && a is B) { |
| 198 print(a.a); |
| 199 print(a.b); |
| 200 print(a.c); |
| 201 print(a.d); /// 56: static type warning |
| 202 } |
| 197 } | 203 } |
| OLD | NEW |