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

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

Issue 2865403007: Get rid of promotedType=none annotations (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 801b1eb1e2c75f18f8f6d4c6c13403427f89bb5c..c1077392511d6bd2afc70154d66046acda79116c 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
@@ -13,15 +13,12 @@ main() {
dynamic y;
num a = /*@typeArgs=num*/ max(
- /*@promotedType=none*/ x,
- /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ y);
+ x,
+ /*info:DYNAMIC_CAST*/ y);
Object b = /*@typeArgs=num*/ max(
- /*@promotedType=none*/ x,
- /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ y);
- dynamic c = /*error:COULD_NOT_INFER*/ /*@typeArgs=dynamic*/ max(
- /*@promotedType=none*/ x,
- /*@promotedType=none*/ y);
+ x,
+ /*info:DYNAMIC_CAST*/ y);
+ dynamic c = /*error:COULD_NOT_INFER*/ /*@typeArgs=dynamic*/ max(x, y);
var /*@type=dynamic*/ d = /*error:COULD_NOT_INFER*/ /*@typeArgs=dynamic*/ max(
- /*@promotedType=none*/ x,
- /*@promotedType=none*/ y);
+ x, y);
}

Powered by Google App Engine
This is Rietveld 408576698