You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@switch does not have type awareness in case statements #52315
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
No
Description
Am using package versions of 17.0.0-rc.0, with extension version v17.0.0-next.2.
When either using ng build or in vscode itself, there is no error thrown for the below code, isDebug is type boolean yet the case statements conflict with that type.
Interestingly on mouseover, it does look like an attempt to perform type coercion happens, resulting predictably in a never type
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
Activity
jpike88 commentedon Oct 23, 2023
closed because duplicate issue #52107
jpike88 commentedon Oct 23, 2023
actually its not a dupe, that other issue is about exhaustive type checking, my one is about more basic type awareness
fix(compiler): template type checking not reporting diagnostics for i…
fix(compiler): template type checking not reporting diagnostics for i…
angular-automatic-lock-bot commentedon Nov 23, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(compiler): template type checking not reporting diagnostics for i…
fix(compiler): template type checking not reporting diagnostics for i…