// "Replace with lambda" "true-preview"
class Test {
  interface I {

  }
  interface Bar extends I {
    int smth = 0;
    int compare(String o1, String o2);
  }
  {
    I bar2 = new Ba<caret>r() {
      @Override
      public int compare(String o1, String o2) {
        System.out.println(smth);
        return 0;
      }
    };
  }
}