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