| Index: pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_empty_list.dart
|
| diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_empty_list.dart b/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_empty_list.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..daa3f17b5b3523d70f906c122df36052be8af4f7
|
| --- /dev/null
|
| +++ b/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_empty_list.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 F3<T> {
|
| + F3(Iterable<Iterable<T>> a) {}
|
| +}
|
| +
|
| +class F4<T> {
|
| + F4({Iterable<Iterable<T>> a}) {}
|
| +}
|
| +
|
| +void main() {
|
| + /*@typeArgs=dynamic*/ new F3(/*@typeArgs=Iterable<dynamic>*/ []);
|
| + /*@typeArgs=dynamic*/ new F4(a: /*@typeArgs=Iterable<dynamic>*/ []);
|
| +}
|
|
|