// "Make annotation applicable to fields" "true-preview"
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

@Target({ElementType.FIELD, ElementType.METHOD})
@interface Foo {}

class Main {
  @Foo int x = 42;
}