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

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

Issue 2868133002: Fix annotation of promoted parameters in Fasta inference tests. (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 da43dd58e4dfc2b3c53bafdab78e8a6a297647ea..ce6cb0fde1eb2b1bf1a2decb6ccb1154852c0b52 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
@@ -17,9 +17,10 @@ void bar() {
var /*@type=dynamic*/ list;
try {
list = <String>[];
- } catch (/*@promotedType=none*/ _) {
+ } catch (_) {
return;
}
- /*info:DYNAMIC_INVOKE*/ /*@promotedType=none*/ list
- .map(/*@returnType=String*/ (/*@type=dynamic*/ value) => '$value');
+ /*info:DYNAMIC_INVOKE*/ /*@promotedType=none*/ list.map(
+ /*@returnType=String*/ (/*@type=dynamic*/ value) =>
+ '${/*@promotedType=none*/value}');
}

Powered by Google App Engine
This is Rietveld 408576698