File: classWithDuplicateIdentifier.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (29 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
=== tests/cases/compiler/classWithDuplicateIdentifier.ts ===
class C {
>C : Symbol(C, Decl(classWithDuplicateIdentifier.ts, 0, 0))

    a(): number { return 0; } // error: duplicate identifier
>a : Symbol(C.a, Decl(classWithDuplicateIdentifier.ts, 0, 9), Decl(classWithDuplicateIdentifier.ts, 1, 29))

    a: number;
>a : Symbol(C.a, Decl(classWithDuplicateIdentifier.ts, 0, 9), Decl(classWithDuplicateIdentifier.ts, 1, 29))
}
class K {
>K : Symbol(K, Decl(classWithDuplicateIdentifier.ts, 3, 1))

    b: number; // error: duplicate identifier
>b : Symbol(K.b, Decl(classWithDuplicateIdentifier.ts, 4, 9))

    b(): number { return 0; }
>b : Symbol(K.b, Decl(classWithDuplicateIdentifier.ts, 5, 14))
}
class D {
>D : Symbol(D, Decl(classWithDuplicateIdentifier.ts, 7, 1))

    c: number;
>c : Symbol(D.c, Decl(classWithDuplicateIdentifier.ts, 8, 9), Decl(classWithDuplicateIdentifier.ts, 9, 14))

    c: string;
>c : Symbol(D.c, Decl(classWithDuplicateIdentifier.ts, 8, 9), Decl(classWithDuplicateIdentifier.ts, 9, 14))
}