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
|
=== tests/cases/compiler/noImplicitThisBigThis.ts ===
// https://github.com/microsoft/TypeScript/issues/29902
function createObj() {
>createObj : Symbol(createObj, Decl(noImplicitThisBigThis.ts, 0, 0))
return {
func1() {
>func1 : Symbol(func1, Decl(noImplicitThisBigThis.ts, 3, 12))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 3, 10))
},
func2() {
>func2 : Symbol(func2, Decl(noImplicitThisBigThis.ts, 6, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 3, 10))
},
func3() {
>func3 : Symbol(func3, Decl(noImplicitThisBigThis.ts, 9, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 3, 10))
}
};
}
function createObjNoCrash() {
>createObjNoCrash : Symbol(createObjNoCrash, Decl(noImplicitThisBigThis.ts, 14, 1))
return {
func1() {
>func1 : Symbol(func1, Decl(noImplicitThisBigThis.ts, 17, 12))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
},
func2() {
>func2 : Symbol(func2, Decl(noImplicitThisBigThis.ts, 20, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
},
func3() {
>func3 : Symbol(func3, Decl(noImplicitThisBigThis.ts, 23, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
},
func4() {
>func4 : Symbol(func4, Decl(noImplicitThisBigThis.ts, 26, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
},
func5() {
>func5 : Symbol(func5, Decl(noImplicitThisBigThis.ts, 29, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
},
func6() {
>func6 : Symbol(func6, Decl(noImplicitThisBigThis.ts, 32, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
},
func7() {
>func7 : Symbol(func7, Decl(noImplicitThisBigThis.ts, 35, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
},
func8() {
>func8 : Symbol(func8, Decl(noImplicitThisBigThis.ts, 38, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
},
func9() {
>func9 : Symbol(func9, Decl(noImplicitThisBigThis.ts, 41, 10))
return this;
>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10))
}
};
}
|