blob: 6c8bfeee3b67fc9d9b744c12705e28cb7813fd7f [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 6843077 8006775
* @summary test invalid location of TypeUse
* @author Mahmood Ali
* @compile/fail/ref=NotTypeUse.out -XDrawDiagnostics NotTypeUse.java
*/
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
class VoidMethod {
@A void test() { }
}
@Target(ElementType.TYPE)
@interface A { }