File: unusedSetterInClass2.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (18 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
=== tests/cases/compiler/unusedSetterInClass2.ts ===
// Unlike everything else, a setter without a getter is used by a write access.
class Employee {
>Employee : Symbol(Employee, Decl(unusedSetterInClass2.ts, 0, 0))

    private set p(_: number) {}
>p : Symbol(Employee.p, Decl(unusedSetterInClass2.ts, 1, 16))
>_ : Symbol(_, Decl(unusedSetterInClass2.ts, 2, 18))

    m() {
>m : Symbol(Employee.m, Decl(unusedSetterInClass2.ts, 2, 31))

        this.p = 0;
>this.p : Symbol(Employee.p, Decl(unusedSetterInClass2.ts, 1, 16))
>this : Symbol(Employee, Decl(unusedSetterInClass2.ts, 0, 0))
>p : Symbol(Employee.p, Decl(unusedSetterInClass2.ts, 1, 16))
    }
}