Fix #7397: Remove error checks for noEmit and out* compiler options combined.#7409
Conversation
|
Hi @anilanar, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
|
@anilanar thanks for the PR. Can you add a set of tests in |
…options combined.
dac8617 to
cde06b6
Compare
|
@DanielRosenwasser Done. I'm not sure if file names fit to a general philosophy (if any?) of naming them. |
| } | ||
| else if (options.allowJs && options.declaration) { | ||
| if (options.allowJs && options.declaration) { | ||
| programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_0_cannot_be_specified_with_option_1, "allowJs", "declaration")); |
There was a problem hiding this comment.
@mhegazy That would reflect the old behaviour. But I gave this a thought and I chose to do it this way because:
allowJs is incompatible with declaration. Then why does the compiler try to hide the error when noEmit is true? Maybe I should add && !options.noEmit and let this be discussed somewhere else.
|
Thanks! |
Fix #7397: Remove error checks for noEmit and out* compiler options combined.
Fixes #7397.