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

Key: RSRP-28126
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Andrey Simanovsky
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

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

'Push members down' does not make class abstract

Created: 21 Aug 06 15:19   Updated: 24 Oct 06 18:12
Component/s: Refactorings
Fix Version/s: 2.0.2
Security Level: Everybody (All jira users)

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

Build: 258
Fixed in build: 264


 Description  « Hide
class Base
{
public void Foo() { }
}

class Generic<T> where T : Base
{
public void Bar(T obj)
{ obj.Foo(); }
}

Select method 'Foo' and apply 'Push members down'. Select 'make abstract'.

class Base
{
public abstract void Foo(); /* error CS0513: 'Base.Foo()' is abstract but it is contained in nonabstract class 'Base' */
}

class Generic<T> where T : Base
{
public void Bar(T obj)
{ obj.Foo(); } }
}

Expected result:

abstract class Base
{
public abstract void Foo();
}



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