test/langtools/tools/javac/Diagnostics/6722234/T6722234c.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 40835 langtools/test/tools/javac/Diagnostics/6722234/T6722234c.java@6ab9ed1abc46
child 49518 d0ff431a596e
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse

/**
 * @test /nodynamiccopyright/
 * @bug     6722234
 * @summary javac diagnostics need better integration with the type-system
 * @author  mcimadamore
 * @compile/fail/ref=T6722234c.out -XDrawDiagnostics --diags:formatterOptions=simpleNames T6722234c.java
 */

class T6722234c {
    static class String {}
    <T> void m(String s2) {}

    void test() {
        m("");
    }
}