Closed
Description
The following code should be valid, because inference will fill in the type parameters to the Foo
constructor call. Instead an error is issued prematurely because Foo
has no default bounds.
class Bar<T> {}
class Foo<T extends Bar<T>> {
Foo(T y);
}
class Baz extends Bar<Baz> {}
void test() {
Baz a;
var x = new Foo(a);
}