| 
 | 1 | +//// [variables.ts] ////  | 
 | 2 | +export const a = 1;  | 
 | 3 | +export let b = 2;  | 
 | 4 | +export var c = 3;  | 
 | 5 | +using d = undefined;  | 
 | 6 | +export { d };  | 
 | 7 | +await using e = undefined;  | 
 | 8 | +export { e };  | 
 | 9 | +//// [interface.ts] ////  | 
 | 10 | +export interface Foo {  | 
 | 11 | +    a: string;  | 
 | 12 | +    readonly b: string;  | 
 | 13 | +    c?: string;  | 
 | 14 | +}  | 
 | 15 | +//// [class.ts] ////  | 
 | 16 | +const i = Symbol();  | 
 | 17 | +export class Bar {  | 
 | 18 | +    a: string;  | 
 | 19 | +    b?: string;  | 
 | 20 | +    declare c: string;  | 
 | 21 | +    #d: string;  | 
 | 22 | +    public e: string;  | 
 | 23 | +    protected f: string;  | 
 | 24 | +    private g: string;  | 
 | 25 | +    ["h"]: string;  | 
 | 26 | +    [i]: string;  | 
 | 27 | +}  | 
 | 28 | + | 
 | 29 | +export abstract class Baz {  | 
 | 30 | +    abstract a: string;  | 
 | 31 | +    abstract method(): void;  | 
 | 32 | +}  | 
 | 33 | +//// [namespace.ts] ////  | 
 | 34 | +export namespace ns {  | 
 | 35 | +    namespace internal {  | 
 | 36 | +        export class Foo {}  | 
 | 37 | +    }  | 
 | 38 | +    export namespace nested {  | 
 | 39 | +        export import inner = internal;  | 
 | 40 | +    }  | 
 | 41 | +}  | 
 | 42 | +//// [alias.ts] ////  | 
 | 43 | +export type A<T> = { x: T };  | 
 | 44 | +//// [variables.d.ts] ////  | 
 | 45 | +export declare const a = 1;  | 
 | 46 | +export declare let b: number;  | 
 | 47 | +export declare var c: number;  | 
 | 48 | +declare const d: any;  | 
 | 49 | +export { d };  | 
 | 50 | +declare const e: any;  | 
 | 51 | +export { e };  | 
 | 52 | +//# sourceMappingURL=variables.d.ts.map  | 
 | 53 | +//// [variables.d.ts.map] ////  | 
 | 54 | +{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["variables.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,IAAI,CAAC;AACnB,eAAO,IAAI,CAAC,QAAI,CAAC;AACjB,eAAO,IAAI,CAAC,QAAI,CAAC;AACjB,QAAA,MAAM,CAAC,KAAY,CAAC;AACpB,OAAO,EAAE,CAAC,EAAE,CAAC;AACb,QAAA,MAAY,CAAC,KAAY,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,CAAC"}  | 
 | 55 | +//// [interface.d.ts] ////  | 
 | 56 | +export interface Foo {  | 
 | 57 | +    a: string;  | 
 | 58 | +    readonly b: string;  | 
 | 59 | +    c?: string;  | 
 | 60 | +}  | 
 | 61 | +//# sourceMappingURL=interface.d.ts.map  | 
 | 62 | +//// [interface.d.ts.map] ////  | 
 | 63 | +{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,CAAC;CACd"}  | 
 | 64 | +//// [class.d.ts] ////  | 
 | 65 | +export declare class Bar {  | 
 | 66 | +    #private;  | 
 | 67 | +    a: string;  | 
 | 68 | +    b?: string;  | 
 | 69 | +    c: string;  | 
 | 70 | +    e: string;  | 
 | 71 | +    protected f: string;  | 
 | 72 | +    private g;  | 
 | 73 | +    ["h"]: string;  | 
 | 74 | +}  | 
 | 75 | +export declare abstract class Baz {  | 
 | 76 | +    abstract a: string;  | 
 | 77 | +    abstract method(): void;  | 
 | 78 | +}  | 
 | 79 | +//# sourceMappingURL=class.d.ts.map  | 
 | 80 | +//// [class.d.ts.map] ////  | 
 | 81 | +{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["class.ts"],"names":[],"mappings":"AACA,qBAAa,GAAG;;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;IACH,CAAC,EAAE,MAAM,CAAC;IAEX,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,CAAC,CAAS;IAClB,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CAEjB;AAED,8BAAsB,GAAG;IACrB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,MAAM,IAAI,IAAI;CAC1B"}  | 
 | 82 | + | 
 | 83 | + | 
 | 84 | +//// [Diagnostics reported]  | 
 | 85 | +class.ts(11,5): error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.  | 
 | 86 | + | 
 | 87 | + | 
 | 88 | +==== class.ts (1 errors) ====  | 
 | 89 | +    const i = Symbol();  | 
 | 90 | +    export class Bar {  | 
 | 91 | +        a: string;  | 
 | 92 | +        b?: string;  | 
 | 93 | +        declare c: string;  | 
 | 94 | +        #d: string;  | 
 | 95 | +        public e: string;  | 
 | 96 | +        protected f: string;  | 
 | 97 | +        private g: string;  | 
 | 98 | +        ["h"]: string;  | 
 | 99 | +        [i]: string;  | 
 | 100 | +        ~~~  | 
 | 101 | +!!! error TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.  | 
 | 102 | +    }  | 
 | 103 | +      | 
 | 104 | +    export abstract class Baz {  | 
 | 105 | +        abstract a: string;  | 
 | 106 | +        abstract method(): void;  | 
 | 107 | +    }  | 
 | 108 | +//// [namespace.d.ts] ////  | 
 | 109 | +export declare namespace ns {  | 
 | 110 | +    namespace internal {  | 
 | 111 | +        class Foo {  | 
 | 112 | +        }  | 
 | 113 | +    }  | 
 | 114 | +    export namespace nested {  | 
 | 115 | +        export import inner = internal;  | 
 | 116 | +    }  | 
 | 117 | +    export {};  | 
 | 118 | +}  | 
 | 119 | +//# sourceMappingURL=namespace.d.ts.map  | 
 | 120 | +//// [namespace.d.ts.map] ////  | 
 | 121 | +{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["namespace.ts"],"names":[],"mappings":"AAAA,yBAAiB,EAAE,CAAC;IAChB,UAAU,QAAQ,CAAC;QACf,MAAa,GAAG;SAAG;KACtB;IACD,MAAM,WAAW,MAAM,CAAC;QACpB,MAAM,QAAQ,KAAK,GAAG,QAAQ,CAAC;KAClC;;CACJ"}  | 
 | 122 | +//// [alias.d.ts] ////  | 
 | 123 | +export type A<T> = {  | 
 | 124 | +    x: T;  | 
 | 125 | +};  | 
 | 126 | +//# sourceMappingURL=alias.d.ts.map  | 
 | 127 | +//// [alias.d.ts.map] ////  | 
 | 128 | +{"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["alias.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,CAAC,CAAC,CAAC,IAAI;IAAE,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC"}  | 
0 commit comments