// "Cast expression to 'java.lang.Object'" "false"
class Scope<T> {
    T val;
    void f() {
        var y = new Object();
        var x = new Object() {
            int a = 12;
        };
        x =<caret> val;
    }
}