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

Unified Diff: pkg/front_end/testcases/inference/propagate_inference_to_field_in_class_dynamic_warnings.dart.strong.expect

Issue 2883533002: Update expectations files to get more strong mode inference tests to pass. (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/propagate_inference_to_field_in_class_dynamic_warnings.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/generic_methods_correctly_recognize_generic_upper_bound.dart.strong.expect b/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class_dynamic_warnings.dart.strong.expect
similarity index 50%
copy from pkg/front_end/testcases/inference/generic_methods_correctly_recognize_generic_upper_bound.dart.strong.expect
copy to pkg/front_end/testcases/inference/propagate_inference_to_field_in_class_dynamic_warnings.dart.strong.expect
index 72c646a47054cc0bb3e94ab8bb576e3f95196f75..53dc4a9636dd1bc262e421104431973c2a11472d 100644
--- a/pkg/front_end/testcases/inference/generic_methods_correctly_recognize_generic_upper_bound.dart.strong.expect
+++ b/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class_dynamic_warnings.dart.strong.expect
@@ -2,13 +2,15 @@ library test;
import self as self;
import "dart:core" as core;
-class Foo<T extends core::Pattern> extends core::Object {
+class A extends core::Object {
+ field core::int x = 2;
constructor •() → void
: super core::Object::•()
;
- method method(self::Foo::T u) → self::Foo::T
- return u;
}
static method main() → dynamic {
- new self::Foo::•<core::String>().method(42);
+ dynamic a = new self::A::•();
+ self::A b = a;
+ core::print(a.x);
+ core::print(a.x.+(2));
}

Powered by Google App Engine
This is Rietveld 408576698