// "Make 'x' effectively final by moving initializer to the 'if' statement" "true-preview"
class X {
  void test(boolean a) {
    int x;
    if (a) {
      x = 1;
    }
    else {
        x = 0;
        System.out.println("hello");
    }
    Runnable r = () -> System.out.println(x);
  }
}