jdk-24/test/langtools/tools/javac/lint/Unchecked.java
2017-09-12 19:03:39 +02:00

15 lines
286 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4821359
* @summary Add -Xlint flag
* @author gafter
*
* @compile/fail/ref=Unchecked.out -XDrawDiagnostics -Xlint:unchecked -Werror Unchecked.java
*/
class Unchecked<T> {
void f(Unchecked u) {
Unchecked<String> us = u;
}
}