122 lines
3.5 KiB
Text
122 lines
3.5 KiB
Text
=== tests/cases/conformance/types/localTypes/localTypes2.ts ===
|
|
function f1() {
|
|
>f1 : Symbol(f1, Decl(localTypes2.ts, 0, 0))
|
|
|
|
function f() {
|
|
>f : Symbol(f, Decl(localTypes2.ts, 0, 15))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(localTypes2.ts, 1, 18))
|
|
|
|
constructor(public x: number, public y: number) { }
|
|
>x : Symbol(x, Decl(localTypes2.ts, 3, 24))
|
|
>y : Symbol(y, Decl(localTypes2.ts, 3, 41))
|
|
}
|
|
return C;
|
|
>C : Symbol(C, Decl(localTypes2.ts, 1, 18))
|
|
}
|
|
let C = f();
|
|
>C : Symbol(C, Decl(localTypes2.ts, 7, 7))
|
|
>f : Symbol(f, Decl(localTypes2.ts, 0, 15))
|
|
|
|
let v = new C(10, 20);
|
|
>v : Symbol(v, Decl(localTypes2.ts, 8, 7))
|
|
>C : Symbol(C, Decl(localTypes2.ts, 7, 7))
|
|
|
|
let x = v.x;
|
|
>x : Symbol(x, Decl(localTypes2.ts, 9, 7))
|
|
>v.x : Symbol(C.x, Decl(localTypes2.ts, 3, 24))
|
|
>v : Symbol(v, Decl(localTypes2.ts, 8, 7))
|
|
>x : Symbol(C.x, Decl(localTypes2.ts, 3, 24))
|
|
|
|
let y = v.y;
|
|
>y : Symbol(y, Decl(localTypes2.ts, 10, 7))
|
|
>v.y : Symbol(C.y, Decl(localTypes2.ts, 3, 41))
|
|
>v : Symbol(v, Decl(localTypes2.ts, 8, 7))
|
|
>y : Symbol(C.y, Decl(localTypes2.ts, 3, 41))
|
|
}
|
|
|
|
function f2() {
|
|
>f2 : Symbol(f2, Decl(localTypes2.ts, 11, 1))
|
|
|
|
function f(x: number) {
|
|
>f : Symbol(f, Decl(localTypes2.ts, 13, 15))
|
|
>x : Symbol(x, Decl(localTypes2.ts, 14, 15))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(localTypes2.ts, 14, 27))
|
|
|
|
public x = x;
|
|
>x : Symbol(x, Decl(localTypes2.ts, 15, 17))
|
|
>x : Symbol(x, Decl(localTypes2.ts, 14, 15))
|
|
|
|
constructor(public y: number) { }
|
|
>y : Symbol(y, Decl(localTypes2.ts, 17, 24))
|
|
}
|
|
return C;
|
|
>C : Symbol(C, Decl(localTypes2.ts, 14, 27))
|
|
}
|
|
let C = f(10);
|
|
>C : Symbol(C, Decl(localTypes2.ts, 21, 7))
|
|
>f : Symbol(f, Decl(localTypes2.ts, 13, 15))
|
|
|
|
let v = new C(20);
|
|
>v : Symbol(v, Decl(localTypes2.ts, 22, 7))
|
|
>C : Symbol(C, Decl(localTypes2.ts, 21, 7))
|
|
|
|
let x = v.x;
|
|
>x : Symbol(x, Decl(localTypes2.ts, 23, 7))
|
|
>v.x : Symbol(C.x, Decl(localTypes2.ts, 15, 17))
|
|
>v : Symbol(v, Decl(localTypes2.ts, 22, 7))
|
|
>x : Symbol(C.x, Decl(localTypes2.ts, 15, 17))
|
|
|
|
let y = v.y;
|
|
>y : Symbol(y, Decl(localTypes2.ts, 24, 7))
|
|
>v.y : Symbol(C.y, Decl(localTypes2.ts, 17, 24))
|
|
>v : Symbol(v, Decl(localTypes2.ts, 22, 7))
|
|
>y : Symbol(C.y, Decl(localTypes2.ts, 17, 24))
|
|
}
|
|
|
|
function f3() {
|
|
>f3 : Symbol(f3, Decl(localTypes2.ts, 25, 1))
|
|
|
|
function f(x: number, y: number) {
|
|
>f : Symbol(f, Decl(localTypes2.ts, 27, 15))
|
|
>x : Symbol(x, Decl(localTypes2.ts, 28, 15))
|
|
>y : Symbol(y, Decl(localTypes2.ts, 28, 25))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(localTypes2.ts, 28, 38))
|
|
|
|
public x = x;
|
|
>x : Symbol(x, Decl(localTypes2.ts, 29, 17))
|
|
>x : Symbol(x, Decl(localTypes2.ts, 28, 15))
|
|
|
|
public y = y;
|
|
>y : Symbol(y, Decl(localTypes2.ts, 30, 25))
|
|
>y : Symbol(y, Decl(localTypes2.ts, 28, 25))
|
|
}
|
|
return C;
|
|
>C : Symbol(C, Decl(localTypes2.ts, 28, 38))
|
|
}
|
|
let C = f(10, 20);
|
|
>C : Symbol(C, Decl(localTypes2.ts, 35, 7))
|
|
>f : Symbol(f, Decl(localTypes2.ts, 27, 15))
|
|
|
|
let v = new C();
|
|
>v : Symbol(v, Decl(localTypes2.ts, 36, 7))
|
|
>C : Symbol(C, Decl(localTypes2.ts, 35, 7))
|
|
|
|
let x = v.x;
|
|
>x : Symbol(x, Decl(localTypes2.ts, 37, 7))
|
|
>v.x : Symbol(C.x, Decl(localTypes2.ts, 29, 17))
|
|
>v : Symbol(v, Decl(localTypes2.ts, 36, 7))
|
|
>x : Symbol(C.x, Decl(localTypes2.ts, 29, 17))
|
|
|
|
let y = v.y;
|
|
>y : Symbol(y, Decl(localTypes2.ts, 38, 7))
|
|
>v.y : Symbol(C.y, Decl(localTypes2.ts, 30, 25))
|
|
>v : Symbol(v, Decl(localTypes2.ts, 36, 7))
|
|
>y : Symbol(C.y, Decl(localTypes2.ts, 30, 25))
|
|
}
|
|
|