Reporter | Grant Boggs (Grant.Boggs) |
---|---|
Created | Feb 17, 2012 2:02:57 AM |
Updated | Feb 17, 2012 2:02:57 AM |
Priority | Normal |
Type | Unspecified |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
When type of property in a class changes, ReSharper 6.1 detects it correctly.
For example, this is original code:
Dim myKeys As New ArrayList
It is assigned to a property of a class where the type has changed:
With ImagingSystemInsert
.IsProd = ServerEnvIsProd
.Company = "ABF"
.Department = CDEPARTMENT
.DocType = "WINS"
.IndexID = CINDEXID
.Keys = myKeys <—- .Keys changed type to "List(Of String)"
.FilePath = filename
However, when I select the ReSharper suggested fix of ‘Change type of myKeys to ‘List(Of String)’ it does this:
Dim myKeys As List(Of String) As New ArrayList
It incorrectly leaves the "As New ArrayList" (original code) at the end of the line.
For example, this is original code:
Dim myKeys As New ArrayList
It is assigned to a property of a class where the type has changed:
With ImagingSystemInsert
.IsProd = ServerEnvIsProd
.Company = "ABF"
.Department = CDEPARTMENT
.DocType = "WINS"
.IndexID = CINDEXID
.Keys = myKeys <—- .Keys changed type to "List(Of String)"
.FilePath = filename
However, when I select the ReSharper suggested fix of ‘Change type of myKeys to ‘List(Of String)’ it does this:
Dim myKeys As List(Of String) As New ArrayList
It incorrectly leaves the "As New ArrayList" (original code) at the end of the line.