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