| Index: pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
|
| diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
|
| index b7d349c56bfa6ef67843982a05fcac9c3ff97ff5..c3444844a6b501bb7c4b44570f0ec229a3f445d5 100644
|
| --- a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
|
| +++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
|
| @@ -12,12 +12,12 @@ class C<T> {
|
|
|
| factory C(T t) {
|
| var /*@type=C<T>*/ x = new C<T>._();
|
| - /*@promotedType=none*/ x.t = /*@promotedType=none*/ t;
|
| - return /*@promotedType=none*/ x;
|
| + x.t = t;
|
| + return x;
|
| }
|
| }
|
|
|
| main() {
|
| var /*@type=C<int>*/ x = new /*@typeArgs=int*/ C(42);
|
| - /*@promotedType=none*/ x.t = /*error:INVALID_ASSIGNMENT*/ 'hello';
|
| + x.t = /*error:INVALID_ASSIGNMENT*/ 'hello';
|
| }
|
|
|