7 lines
125 B
TypeScript
7 lines
125 B
TypeScript
|
class Test {
|
||
|
"prop1": number;
|
||
|
foo() {
|
||
|
var x = () => this["prop1"];
|
||
|
var y: number = x();
|
||
|
}
|
||
|
}
|