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

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

Issue 2903153006: Treat type inference context `dynamic` as equivalent to an empty context. (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 c1077392511d6bd2afc70154d66046acda79116c..a795447b47381c53459e4761b4e5c43c02efb64f 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
@@ -8,7 +8,7 @@ library test;
import 'dart:math';
// T max<T extends num>(T x, T y);
-main() {
+f() {
num x;
dynamic y;
@@ -22,3 +22,5 @@ main() {
var /*@type=dynamic*/ d = /*error:COULD_NOT_INFER*/ /*@typeArgs=dynamic*/ max(
x, y);
}
+
+main() {}

Powered by Google App Engine
This is Rietveld 408576698