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

Key: RSRP-5146
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Sergey Shkredov
Reporter: Gunnlaugur Thor Briem
Votes: 0
Watchers: 0
Operations

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

Extract method should always declare static when used in base constructor invocation

Created: 05 Aug 06 01:41   Updated: Monday 15:49
Component/s: Refactorings - Extract Method
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

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

Build: 113
Fixed in build: 798
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=5146


 Description  « Hide
When I do this:
public MyClass() : base(DateTime.Today) { }

and then highlight

DateTime.Today
and invoke "Extract Method", the dialog box comes up with the "Declare static" checkbox checked, but allows me to uncheck it. Invoking a non-static method in the same class is illegal in a base constructor invocation (constructors have not finished executing), so shouldn't the checkbox be checked and disabled?



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