Files
tsgo/testdata/baselines/reference/submodule/compiler/detachedCommentAtStartOfFunctionBody2.js

24 lines
666 B
TypeScript

//// [tests/cases/compiler/detachedCommentAtStartOfFunctionBody2.ts] ////
//// [detachedCommentAtStartOfFunctionBody2.ts]
class TestFile {
foo(message: string): () => string {
/// <summary>Test summary</summary>
/// <param name="message" type="String" />
/// <returns type="Function" />
return () => message + this.name;
}
}
//// [detachedCommentAtStartOfFunctionBody2.js]
"use strict";
class TestFile {
foo(message) {
/// <summary>Test summary</summary>
/// <param name="message" type="String" />
/// <returns type="Function" />
return () => message + this.name;
}
}