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

Unified Diff: pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart
diff --git a/pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart b/pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart
index 80815300bf8105e0ee6e9058504a3e577c822d7d..801b1eb1e2c75f18f8f6d4c6c13403427f89bb5c 100644
--- a/pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart
+++ b/pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart
@@ -12,16 +12,16 @@ main() {
num x;
dynamic y;
- num a = max(
+ num a = /*@typeArgs=num*/ max(
/*@promotedType=none*/ x,
/*info:DYNAMIC_CAST*/ /*@promotedType=none*/ y);
- Object b = max(
+ Object b = /*@typeArgs=num*/ max(
/*@promotedType=none*/ x,
/*info:DYNAMIC_CAST*/ /*@promotedType=none*/ y);
- dynamic c = /*error:COULD_NOT_INFER*/ max(
+ dynamic c = /*error:COULD_NOT_INFER*/ /*@typeArgs=dynamic*/ max(
/*@promotedType=none*/ x,
/*@promotedType=none*/ y);
- var /*@type=dynamic*/ d = /*error:COULD_NOT_INFER*/ max(
+ var /*@type=dynamic*/ d = /*error:COULD_NOT_INFER*/ /*@typeArgs=dynamic*/ max(
/*@promotedType=none*/ x,
/*@promotedType=none*/ y);
}

Powered by Google App Engine
This is Rietveld 408576698