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

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

Issue 2915913004: Fix inference test annotation of named/optional parameters in function types. (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/inferred_type_uses_synthetic_function_type_named_param.dart
diff --git a/pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_named_param.dart b/pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_named_param.dart
index a1eab34c2b3645b35c3cc1536145ae4a9e9c2aac..4a1212c536d80b251087898225fee83511601129 100644
--- a/pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_named_param.dart
+++ b/pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_named_param.dart
@@ -7,4 +7,11 @@ library test;
int f({int x}) => null;
String g({int x}) => null;
-var /*@topType=List<(int) -> Object>*/ v = /*@typeArgs=(int) -> Object*/ [f, g];
+var /*@topType=List<({x: int}) -> Object>*/ v = /*@typeArgs=({x: int}) -> Object*/ [
+ f,
+ g
+];
+
+main() {
+ v;
+}

Powered by Google App Engine
This is Rietveld 408576698