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

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

Issue 2950213002: Infer the return types of local functions where appropriate. (Closed)
Patch Set: Created 3 years, 6 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/parameter_defaults_upwards.dart
diff --git a/pkg/front_end/testcases/inference/parameter_defaults_upwards.dart b/pkg/front_end/testcases/inference/parameter_defaults_upwards.dart
index 8ed6133f1ea1d7180ae799eaf490691020588956..a19a41ce5ec5b287dedbfbaddb94d859c500635f 100644
--- a/pkg/front_end/testcases/inference/parameter_defaults_upwards.dart
+++ b/pkg/front_end/testcases/inference/parameter_defaults_upwards.dart
@@ -15,8 +15,8 @@ void optional_toplevel([x = /*@typeArgs=int*/ const [0]]) {}
void named_toplevel({x: /*@typeArgs=int*/ const [0]}) {}
main() {
- void optional_local([x = /*@typeArgs=int*/ const [0]]) {}
- void named_local({x: /*@typeArgs=int*/ const [0]}) {}
+ void optional_local([/*@type=dynamic*/ x = /*@typeArgs=int*/ const [0]]) {}
+ void named_local({/*@type=dynamic*/ x: /*@typeArgs=int*/ const [0]}) {}
var /*@type=C<dynamic>*/ c_optional_toplevel =
new /*@typeArgs=dynamic*/ C.optional(optional_toplevel);
var /*@type=C<dynamic>*/ c_named_toplevel =

Powered by Google App Engine
This is Rietveld 408576698