24 lines
723 B
JavaScript
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;
|
|
})();
|