mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Add warn that user can not use --strictPropertyInitialization without --strictNullChecks
This commit is contained in:
1 parent
5d67f8ef68
commit
a20e59cae4
1 file changed
+4
@@ -2062,6 +2062,10 @@ namespace ts {
|
||||
}
|
||||
|
||||
function verifyCompilerOptions() {
|
||||
if (options.strictPropertyInitialization && !options.strictNullChecks) {
|
||||
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "strictPropertyInitialization", "strictNullChecks");
|
||||
}
|
||||
|
||||
if (options.isolatedModules) {
|
||||
if (options.declaration) {
|
||||
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "declaration", "isolatedModules");
|
||||
|
||||
Reference in new issue
Block a user