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