Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: pkg/front_end/testcases/inference/list_literals.dart

Issue 2865403007: Get rid of promotedType=none annotations (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698