Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add warn that user can not use --strictPropertyInitialization without --strictNullChecks#23664

Merged
mhegazy merged 2 commits into
microsoft:mastermicrosoft/TypeScript:masterfrom
a-tarasyuk:feature/strictPropertyInitialization-can-not-be-used-without-strictNullChecksa-tarasyuk/TypeScript:feature/strictPropertyInitialization-can-not-be-used-without-strictNullChecksCopy head branch name to clipboard
Apr 30, 2018
Merged

Add warn that user can not use --strictPropertyInitialization without --strictNullChecks#23664
mhegazy merged 2 commits into
microsoft:mastermicrosoft/TypeScript:masterfrom
a-tarasyuk:feature/strictPropertyInitialization-can-not-be-used-without-strictNullChecksa-tarasyuk/TypeScript:feature/strictPropertyInitialization-can-not-be-used-without-strictNullChecksCopy head branch name to clipboard

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes part of #23659

@mhegazy

mhegazy commented Apr 25, 2018

Copy link
Copy Markdown
Contributor

thanks @a-tarasyuk. we also need a test to go with this change. see tests\cases\compiler\optionsInlineSourceMapMapRoot.ts for an example.

@@ -0,0 +1,70 @@
// @strictPropertyInitialization: true
// @strictNullChecks: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry i was not clear. i meant a test for the new error message.. i.e.

// @strictPropertyInitialization: true
// @strictNullChecks: false

var x;

@a-tarasyuk a-tarasyuk force-pushed the feature/strictPropertyInitialization-can-not-be-used-without-strictNullChecks branch from b143af3 to f04a18a Compare April 26, 2018 17:19
@mhegazy mhegazy merged commit 2c956af into microsoft:master Apr 30, 2018
@mhegazy

mhegazy commented Apr 30, 2018

Copy link
Copy Markdown
Contributor

thanks!

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.