34 lines
774 B
Plaintext
34 lines
774 B
Plaintext
|
=== tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts ===
|
||
|
class TestFile {
|
||
|
>TestFile : TestFile
|
||
|
|
||
|
public message: string;
|
||
|
>message : string
|
||
|
|
||
|
public name;
|
||
|
>name : any
|
||
|
|
||
|
constructor(message: string) {
|
||
|
>message : string
|
||
|
|
||
|
/// <summary>Test summary</summary>
|
||
|
/// <param name="message" type="String" />
|
||
|
var getMessage = () => message + this.name;
|
||
|
>getMessage : () => string
|
||
|
>() => message + this.name : () => string
|
||
|
>message + this.name : string
|
||
|
>message : string
|
||
|
>this.name : any
|
||
|
>this : TestFile
|
||
|
>name : any
|
||
|
|
||
|
this.message = getMessage();
|
||
|
>this.message = getMessage() : string
|
||
|
>this.message : string
|
||
|
>this : TestFile
|
||
|
>message : string
|
||
|
>getMessage() : string
|
||
|
>getMessage : () => string
|
||
|
}
|
||
|
}
|