False positive Open declaration can be removed
when using extension for builder
#16227
Labels
Area-LangService-CodeFixes
Code fixes associated with diagnostics
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Here is the half-done
maybe
CERepro steps
Here is the half-done
maybe
CE, extension for it that adds Bind-overload and usage attempt:Visual Studio marks
open MaybeBuilderExtension
as safe to remove.However it would break compilation of code because we actually use
Bind
from extension.Expected behavior
open
for builder extension isn't marked as unnecessary.Actual behavior
It's marked as unnecessary.
Known workarounds
.
Related information
.NET SDK: 7.0.403
Visual Studio 17.7.6
The text was updated successfully, but these errors were encountered: