@@ -11,9 +11,9 @@ class Foo {
1111
1212 var lamda = (_super: number) => { // No Error
1313>lamda : (_super: number) => (x: any) => this
14- > : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^^^^
14+ > : ^ ^^ ^^^^^^ ^^^^^^^^^^^^
1515>(_super: number) => { // No Error return x => this; // New scope. So should inject new _this capture } : (_super: number) => (x: any) => this
16- > : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^^^^
16+ > : ^ ^^ ^^^^^^ ^^^^^^^^^^^^
1717>_super : number
1818> : ^^^^^^
1919
@@ -33,9 +33,9 @@ class Foo {
3333
3434 var lambda = () => {
3535>lambda : () => (x: any) => this
36- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
36+ > : ^^^^^^^ ^^^^^^^^^^^^
3737>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this
38- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
38+ > : ^^^^^^^ ^^^^^^^^^^^^
3939
4040 return x => this; // New scope. So should inject new _this capture
4141>x => this : (x: any) => this
@@ -64,9 +64,9 @@ class Foo2 extends Foo {
6464
6565 var lamda = (_super: number) => { // Error
6666>lamda : (_super: number) => (x: any) => this
67- > : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^^^^
67+ > : ^ ^^ ^^^^^^ ^^^^^^^^^^^^
6868>(_super: number) => { // Error return x => this; // New scope. So should inject new _this capture } : (_super: number) => (x: any) => this
69- > : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^^^^
69+ > : ^ ^^ ^^^^^^ ^^^^^^^^^^^^
7070>_super : number
7171> : ^^^^^^
7272
@@ -86,9 +86,9 @@ class Foo2 extends Foo {
8686
8787 var lambda = () => {
8888>lambda : () => (x: any) => this
89- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
89+ > : ^^^^^^^ ^^^^^^^^^^^^
9090>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this
91- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
91+ > : ^^^^^^^ ^^^^^^^^^^^^
9292
9393 return x => this; // New scope. So should inject new _this capture
9494>x => this : (x: any) => this
@@ -218,9 +218,9 @@ class Foo4 extends Foo {
218218
219219 var lambda = () => {
220220>lambda : () => (x: any) => this
221- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
221+ > : ^^^^^^^ ^^^^^^^^^^^^
222222>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this
223- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
223+ > : ^^^^^^^ ^^^^^^^^^^^^
224224
225225 return x => this; // New scope. So should inject new _this capture
226226>x => this : (x: any) => this
0 commit comments