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

Key: RSRP-63805
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Yuri Astrakhan
Votes: 0
Watchers: 0
Operations

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

Introduce variable fails for attribute parameters

Created: 05 Apr 08 02:31   Updated: Monday 17:14
Component/s: Refactorings - Inline Variable
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 767
Fixed in build: 798


 Description  « Hide
In the code below, while in the "Test" attribute param of the class, Ctrl+Shift+R - introduce variable. All 3 instances are correctly identified, but no replacement is made. Also, if the operation is performed on the function's attribute, nothing happens at all.

Expected: a constant should be introduced.

[Obsolete("Test")]
class Foo
{
    [Obsolete("Test")]
    public void Bar1()
    {
    }
    [Obsolete("Test")]
    public void Bar2()
    {
    }
}


 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 05 Apr 08 12:11
Introduce variable shouldn't be available here, but introduce field should work.