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

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

Issue 2911683003: Add type inference support for "call" invocations of function expressions. (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/generic_methods_downwards_inference_fold.dart
diff --git a/pkg/front_end/testcases/inference/generic_methods_downwards_inference_fold.dart b/pkg/front_end/testcases/inference/generic_methods_downwards_inference_fold.dart
index 9dd1dc47f4194b968ffd54bdf8067551a6534eb1..84d757ce8b6ffcc9eeb92d4d6a107b6f758f3050 100644
--- a/pkg/front_end/testcases/inference/generic_methods_downwards_inference_fold.dart
+++ b/pkg/front_end/testcases/inference/generic_methods_downwards_inference_fold.dart
@@ -22,12 +22,12 @@ void main() {
void functionExpressionInvocation() {
List<int> o;
- int y = (o.fold)(
+ int y = (o.fold) /*@typeArgs=int*/ (
0,
/*@returnType=int*/ (/*@type=int*/ x,
/*@type=int*/ y) =>
x /*@target=num::+*/ + y);
- var /*@type=dynamic*/ z = (o.fold)(
+ var /*@type=dynamic*/ z = (o.fold) /*@typeArgs=dynamic*/ (
0,
/*@returnType=dynamic*/ (/*@type=dynamic*/ x,
/*@type=int*/ y) => /*info:DYNAMIC_INVOKE*/ x + y);

Powered by Google App Engine
This is Rietveld 408576698