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

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

Issue 2921443002: Implement type inference for PropertyGet. (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 84d757ce8b6ffcc9eeb92d4d6a107b6f758f3050..b90360cb14879f7a81177b257213f645d00dfbf6 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,14 +22,15 @@ void main() {
void functionExpressionInvocation() {
List<int> o;
- int y = (o.fold) /*@typeArgs=int*/ (
+ int y = (o. /*@target=List::fold*/ fold) /*@typeArgs=int*/ (
0,
/*@returnType=int*/ (/*@type=int*/ x,
/*@type=int*/ y) =>
x /*@target=num::+*/ + y);
- var /*@type=dynamic*/ z = (o.fold) /*@typeArgs=dynamic*/ (
- 0,
- /*@returnType=dynamic*/ (/*@type=dynamic*/ x,
- /*@type=int*/ y) => /*info:DYNAMIC_INVOKE*/ x + y);
+ var /*@type=dynamic*/ z =
+ (o. /*@target=List::fold*/ fold) /*@typeArgs=dynamic*/ (
+ 0,
+ /*@returnType=dynamic*/ (/*@type=dynamic*/ x,
+ /*@type=int*/ y) => /*info:DYNAMIC_INVOKE*/ x + y);
y = /*info:DYNAMIC_CAST*/ z;
}

Powered by Google App Engine
This is Rietveld 408576698