mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
19 lines
311 B
Java
19 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();
|
|
}
|