12 lines
222 B
Text
12 lines
222 B
Text
|
=== tests/cases/compiler/thisExpressionInIndexExpression.ts ===
|
||
|
function f() {
|
||
|
>f : () => (r: any) => any
|
||
|
|
||
|
return r => r[this];
|
||
|
>r => r[this] : (r: any) => any
|
||
|
>r : any
|
||
|
>r[this] : any
|
||
|
>r : any
|
||
|
>this : any
|
||
|
}
|