File: publicIndexer.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 (25 lines) | stat: -rw-r--r-- 639 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
=== tests/cases/conformance/classes/indexMemberDeclarations/publicIndexer.ts ===
// public indexers not allowed

class C {
>C : Symbol(C, Decl(publicIndexer.ts, 0, 0))

    public [x: string]: string;
>x : Symbol(x, Decl(publicIndexer.ts, 3, 12))
}

class D {
>D : Symbol(D, Decl(publicIndexer.ts, 4, 1))

    public [x: number]: string;
>x : Symbol(x, Decl(publicIndexer.ts, 7, 12))
}

class E<T> {
>E : Symbol(E, Decl(publicIndexer.ts, 8, 1))
>T : Symbol(T, Decl(publicIndexer.ts, 10, 8))

    public [x: string]: T;
>x : Symbol(x, Decl(publicIndexer.ts, 11, 12))
>T : Symbol(T, Decl(publicIndexer.ts, 10, 8))
}