-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathdeclarationEmitShadowing.symbols
More file actions
34 lines (27 loc) · 1.3 KB
/
declarationEmitShadowing.symbols
File metadata and controls
34 lines (27 loc) · 1.3 KB
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
//// [tests/cases/compiler/declarationEmitShadowing.ts] ////
=== declarationEmitShadowing.ts ===
export class A<T = any> {
>A : Symbol(A, Decl(declarationEmitShadowing.ts, 0, 0))
>T : Symbol(T, Decl(declarationEmitShadowing.ts, 0, 15))
public readonly ShadowedButDoesNotRequireRenaming = <T>(): T => {
>ShadowedButDoesNotRequireRenaming : Symbol(A.ShadowedButDoesNotRequireRenaming, Decl(declarationEmitShadowing.ts, 0, 25))
>T : Symbol(T, Decl(declarationEmitShadowing.ts, 1, 55))
>T : Symbol(T, Decl(declarationEmitShadowing.ts, 1, 55))
return null as any
}
}
export function needsRenameForShadowing<T>() {
>needsRenameForShadowing : Symbol(needsRenameForShadowing, Decl(declarationEmitShadowing.ts, 4, 1))
>T : Symbol(T, Decl(declarationEmitShadowing.ts, 6, 40))
type A = T
>A : Symbol(A, Decl(declarationEmitShadowing.ts, 6, 46))
>T : Symbol(T, Decl(declarationEmitShadowing.ts, 6, 40))
return function O<T>(t: A, t2: T) {
>O : Symbol(O, Decl(declarationEmitShadowing.ts, 8, 8))
>T : Symbol(T, Decl(declarationEmitShadowing.ts, 8, 20))
>t : Symbol(t, Decl(declarationEmitShadowing.ts, 8, 23))
>A : Symbol(A, Decl(declarationEmitShadowing.ts, 6, 46))
>t2 : Symbol(t2, Decl(declarationEmitShadowing.ts, 8, 28))
>T : Symbol(T, Decl(declarationEmitShadowing.ts, 8, 20))
}
}