mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
665 B
TypeScript
23 lines
665 B
TypeScript
//// [tests/cases/compiler/detachedCommentAtStartOfFunctionBody1.ts] ////
|
|
|
|
//// [detachedCommentAtStartOfFunctionBody1.ts]
|
|
class TestFile {
|
|
foo(message: string): () => string {
|
|
/// <summary>Test summary</summary>
|
|
/// <param name="message" type="String" />
|
|
/// <returns type="Function" />
|
|
return () => message + this.name;
|
|
}
|
|
}
|
|
|
|
//// [detachedCommentAtStartOfFunctionBody1.js]
|
|
"use strict";
|
|
class TestFile {
|
|
foo(message) {
|
|
/// <summary>Test summary</summary>
|
|
/// <param name="message" type="String" />
|
|
/// <returns type="Function" />
|
|
return () => message + this.name;
|
|
}
|
|
}
|