mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
//// [tests/cases/compiler/constructorParametersInVariableDeclarations.ts] ////
|
|
|
|
=== constructorParametersInVariableDeclarations.ts ===
|
|
class A {
|
|
>A : Symbol(A, Decl(constructorParametersInVariableDeclarations.ts, 0, 0))
|
|
|
|
private a = x;
|
|
>a : Symbol(A.a, Decl(constructorParametersInVariableDeclarations.ts, 0, 9))
|
|
|
|
private b = { p: x };
|
|
>b : Symbol(A.b, Decl(constructorParametersInVariableDeclarations.ts, 1, 18))
|
|
>p : Symbol(p, Decl(constructorParametersInVariableDeclarations.ts, 2, 17))
|
|
|
|
private c = () => x;
|
|
>c : Symbol(A.c, Decl(constructorParametersInVariableDeclarations.ts, 2, 25))
|
|
|
|
constructor(x: number) {
|
|
>x : Symbol(x, Decl(constructorParametersInVariableDeclarations.ts, 4, 16))
|
|
}
|
|
}
|
|
|
|
class B {
|
|
>B : Symbol(B, Decl(constructorParametersInVariableDeclarations.ts, 6, 1))
|
|
|
|
private a = x;
|
|
>a : Symbol(B.a, Decl(constructorParametersInVariableDeclarations.ts, 8, 9))
|
|
|
|
private b = { p: x };
|
|
>b : Symbol(B.b, Decl(constructorParametersInVariableDeclarations.ts, 9, 18))
|
|
>p : Symbol(p, Decl(constructorParametersInVariableDeclarations.ts, 10, 17))
|
|
|
|
private c = () => x;
|
|
>c : Symbol(B.c, Decl(constructorParametersInVariableDeclarations.ts, 10, 25))
|
|
|
|
constructor() {
|
|
var x = 1;
|
|
>x : Symbol(x, Decl(constructorParametersInVariableDeclarations.ts, 13, 11))
|
|
}
|
|
}
|