OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 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.md file. |
| 4 |
| 5 /*@testedFeatures=inference*/ |
| 6 library test; |
| 7 |
| 8 var /*@topType=int*/ x = 1; |
| 9 var /*@topType=String*/ a = 'aaa'; |
| 10 var /*@topType=String*/ b = 'b ${x} bb'; |
| 11 var /*@topType=String*/ c = 'c ${x} cc' 'ccc'; |
| 12 |
| 13 main() { |
| 14 var /*@type=int*/ x = 1; |
| 15 var /*@type=String*/ a = 'aaa'; |
| 16 var /*@type=String*/ b = 'b ${/*@promotedType=none*/x} bb'; |
| 17 var /*@type=String*/ c = 'c ${/*@promotedType=none*/x} cc' 'ccc'; |
| 18 } |
OLD | NEW |