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

Unified Diff: pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_positional_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_positional_param.dart
diff --git a/pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_positional_param.dart b/pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_positional_param.dart
index 0b23a10dda864ffbcafd06697017afb1121748b5..192c43f90a29c8123908205012d25f1f5c81ce2b 100644
--- a/pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_positional_param.dart
+++ b/pkg/front_end/testcases/inference/inferred_type_uses_synthetic_function_type_positional_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<([int]) -> Object>*/ v = /*@typeArgs=([int]) -> Object*/ [
+ f,
+ g
+];
+
+main() {
+ v;
+}

Powered by Google App Engine
This is Rietveld 408576698