// "Make 'C2' static" "true-preview"
class C {
  public abstract class C2 {
    abstract void m();
  }
}

class Test {

  public static void main(String[] args) {
    new C.<caret>C2() {
      @Override
      void m() {

      }
    };
  }
}