class TestFile { name: string; foo(message: string): () => string { return (...x: string[]) => /// Test summary /// /// message + this.name; } }