| Index: pkg/front_end/testcases/inference/list_literals.dart
|
| diff --git a/pkg/front_end/testcases/inference/list_literals.dart b/pkg/front_end/testcases/inference/list_literals.dart
|
| index 8217164370ff5fa71cb7e549f9454fb87eae4ba2..db2ed9a8c12d73f442b0d74e19d17d179358b4ad 100644
|
| --- a/pkg/front_end/testcases/inference/list_literals.dart
|
| +++ b/pkg/front_end/testcases/inference/list_literals.dart
|
| @@ -7,20 +7,17 @@ library test;
|
|
|
| test1() {
|
| var /*@type=List<int>*/ x = /*@typeArgs=int*/ [1, 2, 3];
|
| - /*@promotedType=none*/ x
|
| - . /*@target=List::add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi');
|
| - /*@promotedType=none*/ x
|
| - . /*@target=List::add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0);
|
| - /*@promotedType=none*/ x. /*@target=List::add*/ add(4);
|
| - List<num> y = /*@promotedType=none*/ x;
|
| + x. /*@target=List::add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi');
|
| + x. /*@target=List::add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0);
|
| + x. /*@target=List::add*/ add(4);
|
| + List<num> y = x;
|
| }
|
|
|
| test2() {
|
| var /*@type=List<num>*/ x = /*@typeArgs=num*/ [1, 2.0, 3];
|
| - /*@promotedType=none*/ x
|
| - . /*@target=List::add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi');
|
| - /*@promotedType=none*/ x. /*@target=List::add*/ add(4.0);
|
| - List<int> y = /*info:ASSIGNMENT_CAST*/ /*@promotedType=none*/ x;
|
| + x. /*@target=List::add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi');
|
| + x. /*@target=List::add*/ add(4.0);
|
| + List<int> y = /*info:ASSIGNMENT_CAST*/ x;
|
| }
|
|
|
| main() {
|
|
|