Files
tsgo/testdata/baselines/reference/submodule/compiler/detachedCommentAtStartOfConstructor2.errors.txt

17 lines
691 B
Plaintext

detachedCommentAtStartOfConstructor2.ts(3,12): error TS2564: Property 'name' has no initializer and is not definitely assigned in the constructor.
==== detachedCommentAtStartOfConstructor2.ts (1 errors) ====
class TestFile {
public message: string;
public name: string;
~~~~
!!! error TS2564: Property 'name' has no initializer and is not definitely assigned in the constructor.
constructor(message: string) {
/// <summary>Test summary</summary>
/// <param name="message" type="String" />
var getMessage = () => message + this.name;
this.message = getMessage();
}
}