mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
723 B
TypeScript
25 lines
723 B
TypeScript
//// [tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|
|
class TestFile {
|
|
constructor(message) {
|
|
/// <summary>Test summary</summary>
|
|
/// <param name="message" type="String" />
|
|
var getMessage = () => message + this.name;
|
|
this.message = getMessage();
|
|
}
|
|
}
|