TypeScript/tests/cases/compiler/quotedPropertyName3.ts

7 lines
125 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
class Test {
"prop1": number;
foo() {
var x = () => this["prop1"];
var y: number = x();
}
}