2014-08-12 17:31:31 -07:00

20 lines
311 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4901280
* @summary name lookup scope for annotations
* @author gafter
*
* @compile/fail/ref=Scope.out -XDrawDiagnostics Scope.java
*/
package annotation.scope;
@A(red) // error: red not in scope.
enum E {
red, green, blue;
}
@interface A {
E value();
}