-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
bugcore: control flowIssues related to the built-in control flow (@if, @for, @switch)Issues related to the built-in control flow (@if, @for, @switch)state: has PR
Description
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)
No response
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugcore: control flowIssues related to the built-in control flow (@if, @for, @switch)Issues related to the built-in control flow (@if, @for, @switch)state: has PR