blob: c8d4f0f536748b12ca7d493cd186ebae013ca99f [file] [log] [blame]
// 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({required Iterable<Iterable<T>> a}) {}
}
void main() {
new /*@typeArgs=Object?*/ F3(/*@typeArgs=Iterable<Object?>*/ []);
new /*@typeArgs=Object?*/ F4(a: /*@typeArgs=Iterable<Object?>*/ []);
}