Skip to content

Incorrect IDE0004 Cast is redundant on interplation #36631

@vsfeedback

Description

@vsfeedback

VSF_TYPE_MARKDOWNVisual Studio 2019 (16.1.2) incorrectly reports the cast in the following expression as redundant:
object x = (IFormattable)$"";

This issue has been moved from https://developercommunity.visualstudio.com/content/problem/605169/incorrect-ide0004-cast-is-redundant-on-interplatio.html
VSTS ticketId: 917467

These are the original issue comments:

Visual Studio Feedback System on 6/13/2019, 01:53 AM (7 days ago):

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

These are the original issue solutions:
(no solutions)

Metadata

Metadata

Labels

Area-IDEBugDeveloper CommunityThe issue was originally reported on https://developercommunity.visualstudio.comIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringsResolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions