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

16 lines
310 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4948130
* @summary casting conversion checks changed for covariant returns
* @author gafter
*
* @compile/fail/ref=RefEqual.out -XDrawDiagnostics RefEqual.java
*/
class RefEqual {
{
Class c = null;
if (String.class != Integer.class) ;
}
}