File: privateNameStaticEmitHelpers.errors.txt

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (20 lines) | stat: -rw-r--r-- 1,638 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
tests/cases/conformance/classes/members/privateNames/main.ts(3,19): error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
tests/cases/conformance/classes/members/privateNames/main.ts(4,30): error TS2807: This syntax requires an imported helper named '__classPrivateFieldGet' with 4 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.


==== tests/cases/conformance/classes/members/privateNames/main.ts (2 errors) ====
    export class S {
        static #a = 1;
        static #b() { this.#a = 42; }
                      ~~~~~~~
!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldSet' with 5 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
        static get #c() { return S.#b(); }
                                 ~~~~
!!! error TS2807: This syntax requires an imported helper named '__classPrivateFieldGet' with 4 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
    }
    
==== tests/cases/conformance/classes/members/privateNames/tslib.d.ts (0 errors) ====
    // these are pre-TS4.3 versions of emit helpers, which only supported private instance fields
    export declare function __classPrivateFieldGet<T extends object, V>(receiver: T, state: any): V;
    export declare function __classPrivateFieldSet<T extends object, V>(receiver: T, state: any, value: V): V;