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

26 lines
741 B
TypeScript

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