| Index: pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart
|
| diff --git a/pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart b/pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..80815300bf8105e0ee6e9058504a3e577c822d7d
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/downward_inference_fixes_no_upwards_errors.dart
|
| @@ -0,0 +1,27 @@
|
| +// 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;
|
| +
|
| +import 'dart:math';
|
| +
|
| +// T max<T extends num>(T x, T y);
|
| +main() {
|
| + num x;
|
| + dynamic y;
|
| +
|
| + num a = max(
|
| + /*@promotedType=none*/ x,
|
| + /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ y);
|
| + Object b = max(
|
| + /*@promotedType=none*/ x,
|
| + /*info:DYNAMIC_CAST*/ /*@promotedType=none*/ y);
|
| + dynamic c = /*error:COULD_NOT_INFER*/ max(
|
| + /*@promotedType=none*/ x,
|
| + /*@promotedType=none*/ y);
|
| + var /*@type=dynamic*/ d = /*error:COULD_NOT_INFER*/ max(
|
| + /*@promotedType=none*/ x,
|
| + /*@promotedType=none*/ y);
|
| +}
|
|
|