langtools/test/tools/javac/generics/diamond/T8041713/DiamondPlusUnexistingMethodRefCrashTest.java
author vromero
Wed, 04 Jun 2014 20:01:13 +0100
changeset 24794 22946bb4c27d
permissions -rw-r--r--
8041713: Type inference of non-existent method references crashes the compiler Reviewed-by: mcimadamore

/*
 * @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);
}