| Index: pkg/front_end/testcases/inference/generic_methods_infer_generic_method_type.dart
|
| diff --git a/pkg/front_end/testcases/inference/generic_methods_infer_generic_method_type.dart b/pkg/front_end/testcases/inference/generic_methods_infer_generic_method_type.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..946577c905b32832460e0da06ff7a7ff2bf5fb0f
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/generic_methods_infer_generic_method_type.dart
|
| @@ -0,0 +1,19 @@
|
| +// 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 m<T>(T x) => x;
|
| +}
|
| +
|
| +class D extends C {
|
| + m<S>(x) => x;
|
| +}
|
| +
|
| +main() {
|
| + int y = new D().m<int>(42);
|
| + print(/*@promotedType=none*/ y);
|
| +}
|
|
|