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

Key: RSRP-25966
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Blocker Blocker
Assignee: Eugene Pasynkov
Reporter: Eugene Pasynkov
Votes: 0
Watchers: 0
Operations

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

Invalid error for correct code

Created: 06 Aug 06 18:10   Updated: 09 Sep 06 13:33
Component/s: Code Analysis
Fix Version/s: 2.0.1
Security Level: Everybody (All jira users)

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

Checked in Build: 250
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=25966


 Description  « Hide
public class MyClass1
{
public virtual object Copy() { return this.MemberwiseClone(); }

}

public class MyClass2 : MyClass1
{
public new virtual MyClass1 Copy()

{ return (MyClass1)this.MemberwiseClone(); }

}

public class MyClass3 : MyClass2
{
bool m_Copied = false;

public override MyClass1 Copy() // <-- ERROR: cannot change return type when overriding method

{ m_Copied = true; return (MyClass2)this.MemberwiseClone(); }

}



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