==== tests/cases/compiler/detachedCommentAtStartOfFunctionBody1.ts (1 errors) ====
class TestFile {
foo(message: string): () => string {
/// Test summary
///
///
return () => message + this.name;
~~~~
!!! Property 'name' does not exist on type 'TestFile'.
}
}