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

Unified Diff: pkg/front_end/testcases/inference/null_literal_should_not_infer_as_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/null_literal_should_not_infer_as_bottom.dart
diff --git a/pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart b/pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart
index 25cd354f81b243492e1616f239e01d386e8dfc1f..194c9cf2f360d26e2e2cbc1027a6a698b795e6c2 100644
--- a/pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart
+++ b/pkg/front_end/testcases/inference/null_literal_should_not_infer_as_bottom.dart
@@ -11,13 +11,13 @@ void foo(int f(Object _)) {}
main() {
var /*@type=(Object) -> dynamic*/ f = /*@returnType=dynamic*/ (Object x) =>
null;
- String y = /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ f(42);
+ String y = /*info:DYNAMIC_CAST*/ f(42);
f = /*@returnType=String*/ (/*@type=Object*/ x) => 'hello';
var /*@type=dynamic*/ g = null;
g = 'hello';
- (/*info:DYNAMIC_INVOKE*/ /*@promotedType=none*/ g.foo());
+ (/*info:DYNAMIC_INVOKE*/ g.foo());
h = 'hello';
(/*info:DYNAMIC_INVOKE*/ h.foo());

Powered by Google App Engine
This is Rietveld 408576698