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

  }
  interface Bar extends I {
    int smth = 0;
    int compare(String o1, String o2);
  }
  {
    I bar2 = (Bar) (o1, o2) -> {
      System.out.println(Bar.smth);
      return 0;
    };
  }
}