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

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

Issue 2865623003: Implement type inference of constructor invocations in Fasta. (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 63f7e521eeff74693034bde5dcc71029ec6eb990..4803b35063c94c0e846f1e353c7e23cef2fa0cca 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
@@ -12,7 +12,7 @@ void printDouble(double x) => print(x);
num myMax(num x, num y) => max(x, y);
-main() {
+f() {
// Okay if static types match.
printInt(max(1, 2));
printInt(min(1, 2));
@@ -34,3 +34,5 @@ main() {
/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "hi",
/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ "there"));
}
+
+main() {}

Powered by Google App Engine
This is Rietveld 408576698