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

Unified Diff: pkg/front_end/testcases/inference/lambda_does_not_have_propagated_type_hint.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/lambda_does_not_have_propagated_type_hint.dart
diff --git a/pkg/front_end/testcases/inference/lambda_does_not_have_propagated_type_hint.dart b/pkg/front_end/testcases/inference/lambda_does_not_have_propagated_type_hint.dart
index 87e93516151d0b7a0c3434bc6af62ff9f0e6d5bf..1cd7e362f2254f217c548e1acef5fb1814e83d28 100644
--- a/pkg/front_end/testcases/inference/lambda_does_not_have_propagated_type_hint.dart
+++ b/pkg/front_end/testcases/inference/lambda_does_not_have_propagated_type_hint.dart
@@ -9,7 +9,7 @@ List<String> getListOfString() => const <String>[];
void foo() {
List myList = getListOfString();
- /*@promotedType=none*/ myList. /*@typeArgs=int*/ /*@target=List::map*/ map(
+ myList. /*@typeArgs=int*/ /*@target=List::map*/ map(
/*@returnType=int*/ (/*@type=dynamic*/ type) => 42);
}
@@ -20,7 +20,6 @@ void bar() {
} catch (_) {
return;
}
- /*info:DYNAMIC_INVOKE*/ /*@promotedType=none*/ list.map(
- /*@returnType=String*/ (/*@type=dynamic*/ value) =>
- '${/*@promotedType=none*/value}');
+ /*info:DYNAMIC_INVOKE*/ list.map(
+ /*@returnType=String*/ (/*@type=dynamic*/ value) => '${value}');
}

Powered by Google App Engine
This is Rietveld 408576698