| Index: pkg/front_end/testcases/inference/constructors_infer_from_arguments_const.dart
|
| diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_const.dart b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_const.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b8ea18ab389492f0553e6ebe7bebd5e318d8b013
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_const.dart
|
| @@ -0,0 +1,15 @@
|
| +// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +/*@testedFeatures=inference*/
|
| +library test;
|
| +
|
| +class C<T> {
|
| + final T t;
|
| + const C(this.t);
|
| +}
|
| +
|
| +main() {
|
| + var /*@type=C<int>*/ x = /*@typeArgs=int*/ const C(42);
|
| +}
|
|
|