21 lines
361 B
Text
21 lines
361 B
Text
|
=== tests/cases/compiler/quotedPropertyName3.ts ===
|
||
|
class Test {
|
||
|
>Test : Test
|
||
|
|
||
|
"prop1": number;
|
||
|
foo() {
|
||
|
>foo : () => void
|
||
|
|
||
|
var x = () => this["prop1"];
|
||
|
>x : () => number
|
||
|
>() => this["prop1"] : () => number
|
||
|
>this["prop1"] : number
|
||
|
>this : Test
|
||
|
|
||
|
var y: number = x();
|
||
|
>y : number
|
||
|
>x() : number
|
||
|
>x : () => number
|
||
|
}
|
||
|
}
|