blob: fd08537273ab2d7a2f501a735a254dcdb5fac5b7 [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.
/*class: global#List:deps=[Class],explicit=[List],indirect,needsArgs*/
/*class: global#JSArray:checked,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>[];
}
}