|
| 1 | +=== tests/cases/compiler/noImplicitThisBigThis.ts === |
| 2 | +// https://github.com/microsoft/TypeScript/issues/29902 |
| 3 | + |
| 4 | +function createObj() { |
| 5 | +>createObj : Symbol(createObj, Decl(noImplicitThisBigThis.ts, 0, 0)) |
| 6 | + |
| 7 | + return { |
| 8 | + func1() { |
| 9 | +>func1 : Symbol(func1, Decl(noImplicitThisBigThis.ts, 3, 12)) |
| 10 | + |
| 11 | + return this; |
| 12 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 3, 10)) |
| 13 | + |
| 14 | + }, |
| 15 | + func2() { |
| 16 | +>func2 : Symbol(func2, Decl(noImplicitThisBigThis.ts, 6, 10)) |
| 17 | + |
| 18 | + return this; |
| 19 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 3, 10)) |
| 20 | + |
| 21 | + }, |
| 22 | + func3() { |
| 23 | +>func3 : Symbol(func3, Decl(noImplicitThisBigThis.ts, 9, 10)) |
| 24 | + |
| 25 | + return this; |
| 26 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 3, 10)) |
| 27 | + } |
| 28 | + }; |
| 29 | +} |
| 30 | + |
| 31 | +function createObjNoCrash() { |
| 32 | +>createObjNoCrash : Symbol(createObjNoCrash, Decl(noImplicitThisBigThis.ts, 14, 1)) |
| 33 | + |
| 34 | + return { |
| 35 | + func1() { |
| 36 | +>func1 : Symbol(func1, Decl(noImplicitThisBigThis.ts, 17, 12)) |
| 37 | + |
| 38 | + return this; |
| 39 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 40 | + |
| 41 | + }, |
| 42 | + func2() { |
| 43 | +>func2 : Symbol(func2, Decl(noImplicitThisBigThis.ts, 20, 10)) |
| 44 | + |
| 45 | + return this; |
| 46 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 47 | + |
| 48 | + }, |
| 49 | + func3() { |
| 50 | +>func3 : Symbol(func3, Decl(noImplicitThisBigThis.ts, 23, 10)) |
| 51 | + |
| 52 | + return this; |
| 53 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 54 | + |
| 55 | + }, |
| 56 | + func4() { |
| 57 | +>func4 : Symbol(func4, Decl(noImplicitThisBigThis.ts, 26, 10)) |
| 58 | + |
| 59 | + return this; |
| 60 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 61 | + |
| 62 | + }, |
| 63 | + func5() { |
| 64 | +>func5 : Symbol(func5, Decl(noImplicitThisBigThis.ts, 29, 10)) |
| 65 | + |
| 66 | + return this; |
| 67 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 68 | + |
| 69 | + }, |
| 70 | + func6() { |
| 71 | +>func6 : Symbol(func6, Decl(noImplicitThisBigThis.ts, 32, 10)) |
| 72 | + |
| 73 | + return this; |
| 74 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 75 | + |
| 76 | + }, |
| 77 | + func7() { |
| 78 | +>func7 : Symbol(func7, Decl(noImplicitThisBigThis.ts, 35, 10)) |
| 79 | + |
| 80 | + return this; |
| 81 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 82 | + |
| 83 | + }, |
| 84 | + func8() { |
| 85 | +>func8 : Symbol(func8, Decl(noImplicitThisBigThis.ts, 38, 10)) |
| 86 | + |
| 87 | + return this; |
| 88 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 89 | + |
| 90 | + }, |
| 91 | + func9() { |
| 92 | +>func9 : Symbol(func9, Decl(noImplicitThisBigThis.ts, 41, 10)) |
| 93 | + |
| 94 | + return this; |
| 95 | +>this : Symbol(__object, Decl(noImplicitThisBigThis.ts, 17, 10)) |
| 96 | + } |
| 97 | + }; |
| 98 | +} |
| 99 | + |
0 commit comments