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

Unified Diff: pkg/front_end/testcases/inference/list_literals_can_infer_null_bottom.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_can_infer_null_bottom.dart
diff --git a/pkg/front_end/testcases/inference/list_literals_can_infer_null_bottom.dart b/pkg/front_end/testcases/inference/list_literals_can_infer_null_bottom.dart
index 4132dc079eb50b7108d5658afae1e50bf094ed56..26bea0e1b37b4cbcb7a72e323dc19889aadbbcb7 100644
--- a/pkg/front_end/testcases/inference/list_literals_can_infer_null_bottom.dart
+++ b/pkg/front_end/testcases/inference/list_literals_can_infer_null_bottom.dart
@@ -7,8 +7,7 @@ library test;
test1() {
var /*@type=List<Null>*/ x = /*@typeArgs=Null*/ [null];
- /*@promotedType=none*/ x
- . /*@target=List::add*/ add(/*error:INVALID_CAST_LITERAL*/ 42);
+ x. /*@target=List::add*/ add(/*error:INVALID_CAST_LITERAL*/ 42);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698