jdk-24/langtools/test/tools/javac/generics/diamond/T8041713/DiamondPlusUnexistingMethodRefCrashTest.java
2014-06-04 20:01:13 +01:00

12 lines
490 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8041713
* @summary Type inference of non-existent method references crashes the compiler
* @compile/fail/ref=DiamondPlusUnexistingMethodRefCrashTest.out -XDrawDiagnostics DiamondPlusUnexistingMethodRefCrashTest.java
*/
public class DiamondPlusUnexistingMethodRefCrashTest<T> {
DiamondPlusUnexistingMethodRefCrashTest<String> m =
new DiamondPlusUnexistingMethodRefCrashTest<>(DiamondPlusUnexistingMethodRefCrashTest::doNotExists);
}