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

Key: RSRP-40983
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: andrey belomutskiy
Votes: 0
Watchers: 1
Operations

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

'make method non-static' local variable name same as object member name

Created: 21 May 07 13:58   Updated: 07 May 08 19:43
Component/s: Refactorings - Make Method Non-Static
Fix Version/s: 4.5
Security Level: Everybody (All jira users)

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


 Description  « Hide
i think an example would be better than an explanation

here is a method

private void test(OrderBatch ob)

{ StagedOrderRemoteView order = ob.order; Console.Write(": " + order); }

[please note that local variable has the same name as OrderBatch member]

after 'make method non-static' refactoring we get a piece of invalid code:

private void test()

{ StagedOrderRemoteView order = order; Console.Write(": " + order); }

I guess '.this' is missing



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.