blob: 1e3dddc5165c2467eca46f0934c5ed8b38bc495f [file] [log] [blame]
// Method to test: generative_constructor(C#)
class C<T> {
var x;
C() : x = new D<T>();
}
class D<T> {
foo() => T;
}
main() {
print(new C<int>().x.foo());
}