-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Fix #7397: Remove error checks for noEmit and out* compiler options combined. #7409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&& !options.noEmit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.