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

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

Issue 2909503004: Update strong mode expectations to reflect kernel type parameter conventions. (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_factory.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart.strong.expect b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..3c0985b3a40e66b1e533bcafc691ea11ef97a571
--- /dev/null
+++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart.strong.expect
@@ -0,0 +1,19 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+class C<T extends core::Object> extends core::Object {
+ field self::C::T t = null;
+ constructor _() → void
+ : super core::Object::•()
+ ;
+ static factory •<T extends core::Object>(self::C::•::T t) → dynamic {
+ self::C<self::C::•::T> x = new self::C::_<self::C::•::T>();
+ x.t = t;
+ return x;
+ }
+}
+static method main() → dynamic {
+ self::C<core::int> x = self::C::•<core::int>(42);
+ x.t = "hello";
+}

Powered by Google App Engine
This is Rietveld 408576698