| Index: pkg/front_end/testcases/inference/generic_methods_inference_error.dart
|
| diff --git a/pkg/front_end/testcases/inference/generic_methods_inference_error.dart b/pkg/front_end/testcases/inference/generic_methods_inference_error.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b51165a20b15ab5cf5ea6cdc2a74fe77f6e60cbb
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/generic_methods_inference_error.dart
|
| @@ -0,0 +1,14 @@
|
| +// 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;
|
| +
|
| +main() {
|
| + List<String> y;
|
| + Iterable<String> x = /*@promotedType=none*/ y.map(
|
| + /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ /*@returnType=double*/ (String
|
| + z) =>
|
| + 1.0);
|
| +}
|
|
|