Index: pkg/front_end/testcases/inference/constructors_infer_from_arguments_redirecting_factory.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_redirecting_factory.dart.direct.expect b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_redirecting_factory.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..25143c34d1db7eeb0685c624d1fe7281b587b28e |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_redirecting_factory.dart.direct.expect |
@@ -0,0 +1,20 @@ |
+library test; |
+import self as self; |
+import "dart:core" as core; |
+ |
+abstract class C<T extends core::Object> extends core::Object { |
+ static field dynamic _redirecting# = <dynamic>[self::C::•]; |
+ abstract get t() → self::C::T; |
+ abstract set t(self::C::T x) → void; |
+ static factory •<T extends core::Object>(self::C::•::T t) → self::C<self::C::•::T> |
+ let dynamic #redirecting_factory = self::CImpl::• in invalid-expression; |
+} |
+class CImpl<T extends core::Object> extends core::Object implements self::C<self::CImpl::T> { |
+ field self::CImpl::T t; |
+ constructor •(self::CImpl::T t) → void |
+ : self::CImpl::t = t, super core::Object::•() |
+ ; |
+} |
+static method main() → dynamic { |
+ dynamic x = new self::CImpl::•<dynamic>(42); |
+} |