mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
11 lines
268 B
Java
11 lines
268 B
Java
// "Make annotation applicable to type uses" "true-preview"
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Target;
|
|
import java.util.List;
|
|
|
|
@Target(ElementType.TYPE_USE)
|
|
@interface Foo {}
|
|
|
|
class Main {
|
|
List<@Foo Integer> answers = List.of(42);
|
|
} |