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

Key: RSRP-27268
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Eugene Pasynkov
Votes: 1
Watchers: 1
Operations

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

Inline variable bug

Created: 06 Aug 06 19:25   Updated: Monday 17:52
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
Issue Links:
Duplicate
 
This issue is duplicated by:
RSRP-27270 Inline variable incorrectly destroyes... Closed
RSRP-26829 "inline variable" introduces error in... Minor Closed

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


 Description  « Hide
public class Base
{
public bool Foo() { return true; }

}

public class Derived : Base
{
public new void Foo() { }

public static void Main()

{ Base obj = new Derived(); bool foo = obj.Foo(); }

}

??????? ?? obj ? ???????? Inline variable. ??? ?????????, ?????????? ?? ??? ????? ? ????????? ?? ?????????????:

public static void Main()

{ bool foo = new Derived().Foo(); /* Cannot convert 'void' to 'bool' */ }

? ??????? ???:

public static void Main()

{ bool foo = ((Base) new Derived()).Foo(); }

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