Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6fdd929

Browse filesBrowse files
committed
Update test
1 parent 20b4523 commit 6fdd929
Copy full SHA for 6fdd929

4 files changed

+8-13Lines changed: 8 additions & 13 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/baselines/reference/thisTypeInFunctions2.js‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/thisTypeInFunctions2.js
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ extend2({
3535
init() {
3636
this // this: containing object literal type
3737
this.mine
38-
//this.willDestroy
3938
},
4039
mine: 13,
4140
foo() {
@@ -71,7 +70,6 @@ extend2({
7170
init: function () {
7271
this; // this: containing object literal type
7372
this.mine;
74-
//this.willDestroy
7573
},
7674
mine: 13,
7775
foo: function () {
Collapse file

‎tests/baselines/reference/thisTypeInFunctions2.symbols‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/thisTypeInFunctions2.symbols
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,12 @@ extend2({
9595
this.mine
9696
>this : Symbol(IndexedWithoutThis, Decl(thisTypeInFunctions2.ts, 5, 1))
9797

98-
//this.willDestroy
9998
},
10099
mine: 13,
101-
>mine : Symbol(mine, Decl(thisTypeInFunctions2.ts, 37, 6))
100+
>mine : Symbol(mine, Decl(thisTypeInFunctions2.ts, 36, 6))
102101

103102
foo() {
104-
>foo : Symbol(foo, Decl(thisTypeInFunctions2.ts, 38, 13))
103+
>foo : Symbol(foo, Decl(thisTypeInFunctions2.ts, 37, 13))
105104

106105
this // this: containing object literal type
107106
>this : Symbol(IndexedWithoutThis, Decl(thisTypeInFunctions2.ts, 5, 1))
@@ -115,20 +114,20 @@ simple({
115114
>simple : Symbol(simple, Decl(thisTypeInFunctions2.ts, 17, 57))
116115

117116
foo(n) {
118-
>foo : Symbol(foo, Decl(thisTypeInFunctions2.ts, 45, 8))
119-
>n : Symbol(n, Decl(thisTypeInFunctions2.ts, 46, 8))
117+
>foo : Symbol(foo, Decl(thisTypeInFunctions2.ts, 44, 8))
118+
>n : Symbol(n, Decl(thisTypeInFunctions2.ts, 45, 8))
120119

121120
return n.length + this.bar();
122121
>n.length : Symbol(String.length, Decl(lib.d.ts, --, --))
123-
>n : Symbol(n, Decl(thisTypeInFunctions2.ts, 46, 8))
122+
>n : Symbol(n, Decl(thisTypeInFunctions2.ts, 45, 8))
124123
>length : Symbol(String.length, Decl(lib.d.ts, --, --))
125124
>this.bar : Symbol(SimpleInterface.bar, Decl(thisTypeInFunctions2.ts, 13, 19))
126125
>this : Symbol(SimpleInterface, Decl(thisTypeInFunctions2.ts, 11, 1))
127126
>bar : Symbol(SimpleInterface.bar, Decl(thisTypeInFunctions2.ts, 13, 19))
128127

129128
},
130129
bar() {
131-
>bar : Symbol(bar, Decl(thisTypeInFunctions2.ts, 48, 6))
130+
>bar : Symbol(bar, Decl(thisTypeInFunctions2.ts, 47, 6))
132131

133132
return 14;
134133
}
Collapse file

‎tests/baselines/reference/thisTypeInFunctions2.types‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/thisTypeInFunctions2.types
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ extend1({
9292
}
9393
});
9494
extend2({
95-
>extend2({ init() { this // this: containing object literal type this.mine //this.willDestroy }, mine: 13, foo() { this // this: containing object literal type this.mine }}) : void
95+
>extend2({ init() { this // this: containing object literal type this.mine }, mine: 13, foo() { this // this: containing object literal type this.mine }}) : void
9696
>extend2 : (args: IndexedWithoutThis) => void
97-
>{ init() { this // this: containing object literal type this.mine //this.willDestroy }, mine: 13, foo() { this // this: containing object literal type this.mine }} : { init(): void; mine: number; foo(): void; }
97+
>{ init() { this // this: containing object literal type this.mine }, mine: 13, foo() { this // this: containing object literal type this.mine }} : { init(): void; mine: number; foo(): void; }
9898

9999
init() {
100100
>init : () => void
@@ -107,7 +107,6 @@ extend2({
107107
>this : IndexedWithoutThis
108108
>mine : any
109109

110-
//this.willDestroy
111110
},
112111
mine: 13,
113112
>mine : number
Collapse file

‎tests/cases/conformance/types/thisType/thisTypeInFunctions2.ts‎

Copy file name to clipboardExpand all lines: tests/cases/conformance/types/thisType/thisTypeInFunctions2.ts
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ extend2({
3434
init() {
3535
this // this: containing object literal type
3636
this.mine
37-
//this.willDestroy
3837
},
3938
mine: 13,
4039
foo() {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.