2022-09-01 16:43:50 +00:00

18 lines
321 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8015505
* @summary Spurious inference error when return type of generic method requires unchecked conversion to target
* @compile T8015505.java
*/
import java.util.List;
class T8015505 {
<Z> List m() { return null; }
void test() {
List<?> l = m();
}
}