error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.


!!! error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== thisAndSuperInStaticMembers4.ts (0 errors) ====
    declare class B {
        static a: any;
        static f(): number;
        a: number;
        f(): number;
    }
    
    class C extends B {
        static x: any = undefined!;
        static y1 = this.x;
        static y2 = this.x();
        static y3 = this?.x();
        static y4 = this[("x")]();
        static y5 = this?.[("x")]();
        static z3 = super.f();
        static z4 = super["f"]();
        
        // these should be unaffected
        x = 1;
        y = this.x;
        z = super.f();
    }