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