Skip to content

false error in verifyCompilerOptions with 'strict' and 'strictPropertyIntialization' #25808

@ajafff

Description

@ajafff

TypeScript Version: 3.1.0-dev.20180717

Search Terms:

Code

tsconfig.json

{
  "compilerOptions": {
    "strict": true,
    "strictPropertyInitialization": true
  }
}

Expected behavior:

No error.

Actual behavior:

error TS5052: Option 'strictPropertyInitialization' cannot be specified without specifying option 'strictNullChecks'.

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions