Why strictNullChecks option does not warn a non-nullable class property which is not initialized? #9761
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
Duplicate
An existing issue was already created
Is this a bug or by design?
Environment
Steps to reproduce
compile the following code with
tsc --strictNullChecks test.ts
:Expected behavior
A.a
is not "nullable" (null
orundefined
) nor optional class propertya?
A.a
is not initialized inA
'sconstructor
.Actual behavior
The text was updated successfully, but these errors were encountered: