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

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

Issue 2868133002: Fix annotation of promoted parameters 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/generic_methods_dart_math_min_max.dart
diff --git a/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart b/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart
index 4803b35063c94c0e846f1e353c7e23cef2fa0cca..0d2e64f9bd55cf34286f53ff99e30ec1006960bf 100644
--- a/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart
+++ b/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart
@@ -7,10 +7,11 @@ library test;
import 'dart:math';
-void printInt(int x) => print(x);
-void printDouble(double x) => print(x);
+void printInt(int x) => print(/*@promotedType=none*/ x);
+void printDouble(double x) => print(/*@promotedType=none*/ x);
-num myMax(num x, num y) => max(x, y);
+num myMax(num x, num y) =>
+ max(/*@promotedType=none*/ x, /*@promotedType=none*/ y);
f() {
// Okay if static types match.

Powered by Google App Engine
This is Rietveld 408576698