error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
accessorInAmbientContextES5.ts(25,14): error TS2564: Property 'shouldError' has no initializer and is not definitely assigned in the constructor.
accessorInAmbientContextES5.ts(25,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.


!!! error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== accessorInAmbientContextES5.ts (2 errors) ====
    // Should allow accessor in ambient contexts even when targeting ES5
    
    declare class AmbientClass {
        accessor prop1: string;
        static accessor prop2: number;
        private accessor prop3: boolean;
        private static accessor prop4: symbol;
    }
    
    declare namespace AmbientNamespace {
        class C {
            accessor prop: string;
        }
    }
    
    // Should also work in .d.ts files (simulated with declare)
    declare module "some-module" {
        export class ExportedClass {
            accessor value: any;
        }
    }
    
    // Regular class should still error when targeting ES5
    class RegularClass {
        accessor shouldError: string; // Should still error
                 ~~~~~~~~~~~
!!! error TS2564: Property 'shouldError' has no initializer and is not definitely assigned in the constructor.
                 ~~~~~~~~~~~
!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
    }