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

Unified Diff: pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync.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/block_bodied_lambdas_infer_bottom_sync.dart
diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync.dart b/pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync.dart
index f427fbd614643eba4f50d0387bb61f08e4eff668..79e2127be961f17ef25aaf71b46db4039ae8d9a0 100644
--- a/pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync.dart
+++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_infer_bottom_sync.dart
@@ -12,7 +12,7 @@ main() {
var /*@type=(Object) -> Null*/ f = /*@returnType=Null*/ (Object x) {
return null;
};
- String y = /*@promotedType=none*/ f(42);
+ String y = f(42);
f = /*error:INVALID_CAST_FUNCTION_EXPR*/ /*@returnType=String*/ (/*@type=Object*/ x) =>
'hello';

Powered by Google App Engine
This is Rietveld 408576698