jdk-24/langtools/test/tools/javac/Diagnostics/6722234/T6722234c.java
2009-08-27 11:08:27 -07:00

17 lines
363 B
Java

/**
* @test /nodynamiccopyright/
* @bug 6722234
* @summary javac diagnostics need better integration with the type-system
* @author mcimadamore
* @compile/fail/ref=T6722234c.out -XDrawDiagnostics -XDdiags=simpleNames T6722234c.java
*/
class T6722234c {
static class String {}
<T> void m(String s2) {}
void test() {
m("");
}
}