File: uniqueSymbolsDeclarationsErrors.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 (147 lines) | stat: -rw-r--r-- 6,840 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
=== tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsDeclarationsErrors.ts ===
declare const s: unique symbol;
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))

interface I { readonly readonlyType: unique symbol; }
>I : Symbol(I, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 31))
>readonlyType : Symbol(I.readonlyType, Decl(uniqueSymbolsDeclarationsErrors.ts, 1, 13))

// not allowed when emitting declarations

export const obj = {
>obj : Symbol(obj, Decl(uniqueSymbolsDeclarationsErrors.ts, 5, 12))

    method1(p: typeof s): typeof s {
>method1 : Symbol(method1, Decl(uniqueSymbolsDeclarationsErrors.ts, 5, 20))
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 6, 12))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))

        return p;
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 6, 12))

    },
    method2(p: I["readonlyType"]): I["readonlyType"] {
>method2 : Symbol(method2, Decl(uniqueSymbolsDeclarationsErrors.ts, 8, 6))
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 9, 12))
>I : Symbol(I, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 31))
>I : Symbol(I, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 31))

        return p;
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 9, 12))
    }
};

export const classExpression = class {
>classExpression : Symbol(classExpression, Decl(uniqueSymbolsDeclarationsErrors.ts, 14, 12))

    method1(p: typeof s): typeof s {
>method1 : Symbol(classExpression.method1, Decl(uniqueSymbolsDeclarationsErrors.ts, 14, 38))
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 15, 12))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))

        return p;
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 15, 12))
    }
    method2(p: I["readonlyType"]): I["readonlyType"] {
>method2 : Symbol(classExpression.method2, Decl(uniqueSymbolsDeclarationsErrors.ts, 17, 5))
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 18, 12))
>I : Symbol(I, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 31))
>I : Symbol(I, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 31))

        return p;
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 18, 12))
    }
};

export function funcInferredReturnType(obj: { method(p: typeof s): void }) {
>funcInferredReturnType : Symbol(funcInferredReturnType, Decl(uniqueSymbolsDeclarationsErrors.ts, 21, 2))
>obj : Symbol(obj, Decl(uniqueSymbolsDeclarationsErrors.ts, 23, 39))
>method : Symbol(method, Decl(uniqueSymbolsDeclarationsErrors.ts, 23, 45))
>p : Symbol(p, Decl(uniqueSymbolsDeclarationsErrors.ts, 23, 53))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))

    return obj;
>obj : Symbol(obj, Decl(uniqueSymbolsDeclarationsErrors.ts, 23, 39))
}

export interface InterfaceWithPrivateNamedProperties {
>InterfaceWithPrivateNamedProperties : Symbol(InterfaceWithPrivateNamedProperties, Decl(uniqueSymbolsDeclarationsErrors.ts, 25, 1))

    [s]: any;
>[s] : Symbol(InterfaceWithPrivateNamedProperties[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 27, 54))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
}

export interface InterfaceWithPrivateNamedMethods {
>InterfaceWithPrivateNamedMethods : Symbol(InterfaceWithPrivateNamedMethods, Decl(uniqueSymbolsDeclarationsErrors.ts, 29, 1))

    [s](): any;
>[s] : Symbol(InterfaceWithPrivateNamedMethods[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 31, 51))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
}

export type TypeLiteralWithPrivateNamedProperties = {
>TypeLiteralWithPrivateNamedProperties : Symbol(TypeLiteralWithPrivateNamedProperties, Decl(uniqueSymbolsDeclarationsErrors.ts, 33, 1))

    [s]: any;
>[s] : Symbol([s], Decl(uniqueSymbolsDeclarationsErrors.ts, 35, 53))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
}

export type TypeLiteralWithPrivateNamedMethods = {
>TypeLiteralWithPrivateNamedMethods : Symbol(TypeLiteralWithPrivateNamedMethods, Decl(uniqueSymbolsDeclarationsErrors.ts, 37, 1))

    [s](): any;
>[s] : Symbol([s], Decl(uniqueSymbolsDeclarationsErrors.ts, 39, 50))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
}

export class ClassWithPrivateNamedProperties {
>ClassWithPrivateNamedProperties : Symbol(ClassWithPrivateNamedProperties, Decl(uniqueSymbolsDeclarationsErrors.ts, 41, 1))

    [s]: any;
>[s] : Symbol(ClassWithPrivateNamedProperties[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 43, 46))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))

    static [s]: any;
>[s] : Symbol(ClassWithPrivateNamedProperties[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 44, 13))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
}

export class ClassWithPrivateNamedMethods {
>ClassWithPrivateNamedMethods : Symbol(ClassWithPrivateNamedMethods, Decl(uniqueSymbolsDeclarationsErrors.ts, 46, 1))

    [s]() {}
>[s] : Symbol(ClassWithPrivateNamedMethods[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 48, 43))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))

    static [s]() {}
>[s] : Symbol(ClassWithPrivateNamedMethods[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 49, 12))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
}

export class ClassWithPrivateNamedAccessors {
>ClassWithPrivateNamedAccessors : Symbol(ClassWithPrivateNamedAccessors, Decl(uniqueSymbolsDeclarationsErrors.ts, 51, 1))

    get [s](): any { return undefined; }
>[s] : Symbol(ClassWithPrivateNamedAccessors[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 53, 45), Decl(uniqueSymbolsDeclarationsErrors.ts, 54, 40))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
>undefined : Symbol(undefined)

    set [s](v: any) { }
>[s] : Symbol(ClassWithPrivateNamedAccessors[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 53, 45), Decl(uniqueSymbolsDeclarationsErrors.ts, 54, 40))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
>v : Symbol(v, Decl(uniqueSymbolsDeclarationsErrors.ts, 55, 12))

    static get [s](): any { return undefined; }
>[s] : Symbol(ClassWithPrivateNamedAccessors[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 55, 23), Decl(uniqueSymbolsDeclarationsErrors.ts, 56, 47))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
>undefined : Symbol(undefined)

    static set [s](v: any) { }
>[s] : Symbol(ClassWithPrivateNamedAccessors[s], Decl(uniqueSymbolsDeclarationsErrors.ts, 55, 23), Decl(uniqueSymbolsDeclarationsErrors.ts, 56, 47))
>s : Symbol(s, Decl(uniqueSymbolsDeclarationsErrors.ts, 0, 13))
>v : Symbol(v, Decl(uniqueSymbolsDeclarationsErrors.ts, 57, 19))
}