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

Side by Side Diff: pkg/front_end/testcases/inference/generic_methods_downwards_inference_fold.dart

Issue 2867253004: Fix annotation of generic method invocations in Fasta inference tests. (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /*@testedFeatures=inference*/ 5 /*@testedFeatures=inference*/
6 library test; 6 library test;
7 7
8 void main() { 8 void main() {
9 List<int> o; 9 List<int> o;
10 int y = /*@promotedType=none*/ o.fold( 10 int y = /*@promotedType=none*/ o. /*@typeArgs=int*/ fold(
11 0, 11 0,
12 /*@returnType=int*/ (/*@type=int*/ x, 12 /*@returnType=int*/ (/*@type=int*/ x,
13 /*@type=int*/ y) => /*@promotedType=none*/ x + /*@promotedType=none*/ y); 13 /*@type=int*/ y) => /*@promotedType=none*/ x + /*@promotedType=none*/ y);
14 var /*@type=dynamic*/ z = /*@promotedType=none*/ o.fold( 14 var /*@type=dynamic*/ z = /*@promotedType=none*/ o. /*@typeArgs=dynamic*/ fold (
15 0, 15 0,
16 /*@returnType=dynamic*/ (/*@type=dynamic*/ x, 16 /*@returnType=dynamic*/ (/*@type=dynamic*/ x,
17 /*@type=int*/ y) => /*info:DYNAMIC_INVOKE*/ /*@promotedType=none*/ x + /*@promotedType=none*/ y); 17 /*@type=int*/ y) => /*info:DYNAMIC_INVOKE*/ /*@promotedType=none*/ x + /*@promotedType=none*/ y);
18 y = /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ z; 18 y = /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ z;
19 } 19 }
20 20
21 void functionExpressionInvocation() { 21 void functionExpressionInvocation() {
22 List<int> o; 22 List<int> o;
23 int y = (/*@promotedType=none*/ o.fold)( 23 int y = (/*@promotedType=none*/ o.fold)(
24 0, 24 0,
25 /*@returnType=int*/ (/*@type=int*/ x, 25 /*@returnType=int*/ (/*@type=int*/ x,
26 /*@type=int*/ y) => /*@promotedType=none*/ x + /*@promotedType=none*/ y); 26 /*@type=int*/ y) => /*@promotedType=none*/ x + /*@promotedType=none*/ y);
27 var /*@type=dynamic*/ z = (/*@promotedType=none*/ o.fold)( 27 var /*@type=dynamic*/ z = (/*@promotedType=none*/ o.fold)(
28 0, 28 0,
29 /*@returnType=dynamic*/ (/*@type=dynamic*/ x, 29 /*@returnType=dynamic*/ (/*@type=dynamic*/ x,
30 /*@type=int*/ y) => /*info:DYNAMIC_INVOKE*/ /*@promotedType=none*/ x + /*@promotedType=none*/ y); 30 /*@type=int*/ y) => /*info:DYNAMIC_INVOKE*/ /*@promotedType=none*/ x + /*@promotedType=none*/ y);
31 y = /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ z; 31 y = /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ z;
32 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698