TypeScript/tests/baselines/reference/quotedPropertyName3.js
2014-07-12 17:30:19 -07:00

21 lines
421 B
JavaScript

//// [quotedPropertyName3.ts]
class Test {
"prop1": number;
foo() {
var x = () => this["prop1"];
var y: number = x();
}
}
//// [quotedPropertyName3.js]
var Test = (function () {
function Test() {
}
Test.prototype.foo = function () {
var _this = this;
var x = function () { return _this["prop1"]; };
var y = x();
};
return Test;
})();