File: typeOfThisInStaticMembers2.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (17 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
=== tests/cases/conformance/classes/members/instanceAndStaticMembers/typeOfThisInStaticMembers2.ts ===
class C {
>C : Symbol(C, Decl(typeOfThisInStaticMembers2.ts, 0, 0))

    static foo = this; // ok
>foo : Symbol(C.foo, Decl(typeOfThisInStaticMembers2.ts, 0, 9))
>this : Symbol(C, Decl(typeOfThisInStaticMembers2.ts, 0, 0))
}

class C2<T> {
>C2 : Symbol(C2, Decl(typeOfThisInStaticMembers2.ts, 2, 1))
>T : Symbol(T, Decl(typeOfThisInStaticMembers2.ts, 4, 9))

    static foo = this; // ok
>foo : Symbol(C2.foo, Decl(typeOfThisInStaticMembers2.ts, 4, 13))
>this : Symbol(C2, Decl(typeOfThisInStaticMembers2.ts, 2, 1))
}