| 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 least upper bound through type checking of conditionals. | 5 // Test least upper bound through type checking of conditionals. |
| 6 | 6 |
| 7 class N<T> { | 7 class N<T> { |
| 8 T get n => null; | 8 T get n => null; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Is least upper bound N<N<...>> ? | 91 // Is least upper bound N<N<...>> ? |
| 92 (z ? a : b).n.n; //# 11: static type warning | 92 (z ? a : b).n.n; //# 11: static type warning |
| 93 // Is least upper bound N<C2<...>> ? | 93 // Is least upper bound N<C2<...>> ? |
| 94 (z ? a : b).n.c2; //# 12: static type warning | 94 (z ? a : b).n.c2; //# 12: static type warning |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 void main() { | 98 void main() { |
| 99 testC1(false, null, null); | 99 testC1(false, null, null); |
| 100 testC2(false, null, null); | 100 testC2(false, null, null); |
| 101 } | 101 } |
| OLD | NEW |