@@ -11,9 +11,9 @@ class Foo {
11
11
12
12
var lamda = (_super: number) => { // No Error
13
13
>lamda : (_super: number) => (x: any) => this
14
- > : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^^^^
14
+ > : ^ ^^ ^^^^^^ ^^^^^^^^^^^^
15
15
>(_super: number) => { // No Error return x => this; // New scope. So should inject new _this capture } : (_super: number) => (x: any) => this
16
- > : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^^^^
16
+ > : ^ ^^ ^^^^^^ ^^^^^^^^^^^^
17
17
>_super : number
18
18
> : ^^^^^^
19
19
@@ -33,9 +33,9 @@ class Foo {
33
33
34
34
var lambda = () => {
35
35
>lambda : () => (x: any) => this
36
- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
36
+ > : ^^^^^^^ ^^^^^^^^^^^^
37
37
>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this
38
- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
38
+ > : ^^^^^^^ ^^^^^^^^^^^^
39
39
40
40
return x => this; // New scope. So should inject new _this capture
41
41
>x => this : (x: any) => this
@@ -64,9 +64,9 @@ class Foo2 extends Foo {
64
64
65
65
var lamda = (_super: number) => { // Error
66
66
>lamda : (_super: number) => (x: any) => this
67
- > : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^^^^
67
+ > : ^ ^^ ^^^^^^ ^^^^^^^^^^^^
68
68
>(_super: number) => { // Error return x => this; // New scope. So should inject new _this capture } : (_super: number) => (x: any) => this
69
- > : ^ ^^ ^^^^^^ ^^ ^^^^^^^^^^^^
69
+ > : ^ ^^ ^^^^^^ ^^^^^^^^^^^^
70
70
>_super : number
71
71
> : ^^^^^^
72
72
@@ -86,9 +86,9 @@ class Foo2 extends Foo {
86
86
87
87
var lambda = () => {
88
88
>lambda : () => (x: any) => this
89
- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
89
+ > : ^^^^^^^ ^^^^^^^^^^^^
90
90
>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this
91
- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
91
+ > : ^^^^^^^ ^^^^^^^^^^^^
92
92
93
93
return x => this; // New scope. So should inject new _this capture
94
94
>x => this : (x: any) => this
@@ -218,9 +218,9 @@ class Foo4 extends Foo {
218
218
219
219
var lambda = () => {
220
220
>lambda : () => (x: any) => this
221
- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
221
+ > : ^^^^^^^ ^^^^^^^^^^^^
222
222
>() => { return x => this; // New scope. So should inject new _this capture } : () => (x: any) => this
223
- > : ^^^^^^^ ^^ ^^^^^^^^^^^^
223
+ > : ^^^^^^^ ^^^^^^^^^^^^
224
224
225
225
return x => this; // New scope. So should inject new _this capture
226
226
>x => this : (x: any) => this
0 commit comments