Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
Yes
Description
Wrong warning in this case
Exemple :
warning NG8102: The left side of this nullish coalescing operation does not include 'null' or 'undefined' in its type, therefore the '??' operator can be safely removed.
{{element.CurrentLock?.Clinician?.Label ?? '--'}}
In this case CurrentLock and Clinician could be null
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)
Angular CLI: 13.2.0
Node: 14.18.3
Package Manager: npm 6.14.15
OS: win32 x64
Angular: 13.2.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1302.0
@angular-devkit/build-angular 13.2.0
@angular-devkit/core 13.2.0
@angular-devkit/schematics 13.2.0
@schematics/angular 13.2.0
rxjs 6.6.7
typescript 4.5.4
Anything else?
No response
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
Yes
Description
Wrong warning in this case
Exemple :
{{element.CurrentLock?.Clinician?.Label ?? '--'}}warning NG8102: The left side of this nullish coalescing operation does not include 'null' or 'undefined' in its type, therefore the '??' operator can be safely removed.
In this case CurrentLock and Clinician could be null
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)Anything else?
No response