History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-55972
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Andrew Backer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Rename (vb) fails on member with associated property (_test => Test())

Created: 16 Jan 08 02:49   Updated: 26 Mar 08 16:36
Component/s: Refactorings - Rename
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive resharper-vb-rename-member-fails-on-property.zip (26 kb)


Build: 584


 Description  « Hide
Rename is failing on me when I try to rename a private member variable when that variable has an associated Property function.
  • My "Instance fields / Name Prefix" is an underscore
  • Variable name is _test
  • Generated a read/write property using Alt+Insert
  • Attempting to rename the variable with the prefix to a new variable with a prefix causes the errors and invalid code
  • The error appears to happen when renaming without a prefix (_test => funtest, etc)

The issue is that it renames the property to the same name as the variable (and shows those two scary error messages.) This, of course, leads to a name collision for private _test as String and public property _Test() as string.

// Andrew



 All   Comments   Work Log   Change History      Sort Order:
Sergey Shkredov - 26 Mar 08 16:36
First problem is fixed. (rename _foo to _fee).