Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Andrey Simanovsky 
Subsystem
Refactoring 
Affected versions
Fixed in
Fixed in build
Next build 
Build
258
Fixed in build
264
  • Submitted by   Vladimir Reshetnikov
    3 years ago (21 Aug 2006 15:19)
  • Updated by Vladimir Reshetnikov
    3 years ago (24 Oct 2006 18:12)
  • Jira: RSRP-28126
    (history, comments)

RSRP-28126

'Push members down' does not make class abstract

0
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();
}

Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments