TypeScript/tests/baselines/reference/detachedCommentAtStartOfConstructor1.js
2014-08-19 12:38:56 -07:00

24 lines
723 B
JavaScript

//// [detachedCommentAtStartOfConstructor1.ts]
class TestFile {
public message: string;
public name;
constructor(message: string) {
/// <summary>Test summary</summary>
/// <param name="message" type="String" />
var getMessage = () => message + this.name;
this.message = getMessage();
}
}
//// [detachedCommentAtStartOfConstructor1.js]
var TestFile = (function () {
function TestFile(message) {
var _this = this;
/// <summary>Test summary</summary>
/// <param name="message" type="String" />
var getMessage = function () { return message + _this.name; };
this.message = getMessage();
}
return TestFile;
})();