Index: pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart.direct.expect b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3a869f242b94780f6cf129f9bb672cb7303b58cb |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart.direct.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) → self::C<self::C::•::T> { |
+ dynamic x = new self::C::_<self::C::•::T>(); |
+ x.t = t; |
+ return x; |
+ } |
+} |
+static method main() → dynamic { |
+ dynamic x = self::C::•<dynamic>(42); |
+ x.t = "hello"; |
+} |