IDE0057 incorrectly handles substrings on String itself #38055
Labels
Area-IDE
Bug
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
IDE-CodeStyle
Built-in analyzers, fixes, and refactorings
New Language Feature - Range
Range
Pedantic ;)
Milestone
Version Used:
3.3.0-beta3-19413-06+ac06df1bffb7b7fd0e5bf63cc91921af76b21e03
Steps to Reproduce:
This is a super corner-case only relevant to a few people in the world, so I'll understand if you want to close it. Just opening the issue in case.
The definition of System.String itself uses its own Substring in a few places, e.g.
IDE0057 fires here, and transforms it into:
which doesn't compile. It should have been transformed instead into:
which works fine.
The text was updated successfully, but these errors were encountered: