blob: 576528d623e6b6fa2c52d6c6ea781aee3bdb1ff3 [file] [log] [blame]
// Copyright (c) 2018, 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.
// @dart = 2.7
/*spec:nnbd-off.class: global#List:deps=[Class],explicit=[List,List<String>],indirect,needsArgs*/
/*prod:nnbd-off.class: global#List:deps=[Class],explicit=[List],indirect,needsArgs*/
/*spec:nnbd-off.class: global#JSArray:deps=[ArrayIterator,List],explicit=[JSArray,JSArray.E,JSArray<ArrayIterator.E>],implicit=[JSArray.E],indirect,needsArgs*/
/*prod:nnbd-off.class: global#JSArray:deps=[List],explicit=[JSArray],implicit=[JSArray.E],indirect,needsArgs*/
main() {
var c = new Class<int>();
var list = c.m();
var set = list.toSet();
set is Set<String>;
}
/*class: Class:implicit=[Class.T],indirect,needsArgs*/
class Class<T> {
m() {
return <T>[];
}
}