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

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

Issue 2908453002: Infer the types of initializing formals from the corresponding fields. (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/constructors_infer_from_arguments_const_with_upper_bound.dart
diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_const_with_upper_bound.dart b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_const_with_upper_bound.dart
index e5989ea7b410c0ef646e7edbb431891293b9a707..ca876a50842a9eeeefdf18715bf5bf8c93614de5 100644
--- a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_const_with_upper_bound.dart
+++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_const_with_upper_bound.dart
@@ -14,7 +14,7 @@ class D<T extends num> {
const D();
}
-void f() {
+void main() {
const /*@type=C<int>*/ c = const /*@typeArgs=int*/ C(0);
C<int> c2 = c;
const D<int> d = const /*@typeArgs=int*/ D();

Powered by Google App Engine
This is Rietveld 408576698