blob: 318d8e8d04674e9d71128017015157510aa6af59 [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: Class1:*/
class Class1 {
/*strong.element: Class1.:*/
/*omit.element: Class1.:*/
Class1();
/*strong.element: Class1.method:needsArgs*/
/*omit.element: Class1.method:*/
T method<T>() => null;
}
/*strong.class: Class2:*/
/*omit.class: Class2:*/
class Class2<T> {
/*strong.element: Class2.:*/
/*omit.element: Class2.:*/
Class2();
}
/*strong.element: main:*/
/*omit.element: main:*/
main() {
Class1 cls1 = new Class1();
print(cls1.method.runtimeType.toString());
new Class2<int>();
}