mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
//// [tests/cases/compiler/constructorParametersThatShadowExternalNamesInVariableDeclarations.ts] ////
|
|
|
|
=== constructorParametersThatShadowExternalNamesInVariableDeclarations.ts ===
|
|
var x = 1;
|
|
>x : Symbol(x, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 0, 3))
|
|
|
|
class A {
|
|
>A : Symbol(A, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 0, 10))
|
|
|
|
private a = x;
|
|
>a : Symbol(A.a, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 1, 9))
|
|
>x : Symbol(x, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 0, 3))
|
|
|
|
constructor(x: number) {
|
|
>x : Symbol(x, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 3, 16))
|
|
}
|
|
}
|
|
|
|
class B {
|
|
>B : Symbol(B, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 5, 1))
|
|
|
|
private a = x;
|
|
>a : Symbol(B.a, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 7, 9))
|
|
>x : Symbol(x, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 0, 3))
|
|
|
|
constructor() {
|
|
var x = "";
|
|
>x : Symbol(x, Decl(constructorParametersThatShadowExternalNamesInVariableDeclarations.ts, 10, 11))
|
|
}
|
|
}
|