2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/detachedCommentAtStartOfFunctionBody2.ts(7,37): error TS2339: Property 'name' does not exist on type 'TestFile'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/detachedCommentAtStartOfFunctionBody2.ts (1 errors) ====
|
|
|
|
class TestFile {
|
|
|
|
foo(message: string): () => string {
|
|
|
|
/// <summary>Test summary</summary>
|
|
|
|
/// <param name="message" type="String" />
|
|
|
|
/// <returns type="Function" />
|
|
|
|
|
|
|
|
return () => message + this.name;
|
|
|
|
~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2339: Property 'name' does not exist on type 'TestFile'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|