a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
28 lines
447 B
C#
28 lines
447 B
C#
// CS1540: Cannot access protected member `AAttribute.AAttribute(int)' via a qualifier of type `AAttribute'. The qualifier must be of type `BAttribute' or derived from it
|
|
// Line: 17
|
|
|
|
using System;
|
|
|
|
public class AAttribute : Attribute
|
|
{
|
|
public AAttribute ()
|
|
{
|
|
}
|
|
|
|
protected AAttribute (int a)
|
|
{
|
|
}
|
|
}
|
|
|
|
[AAttribute (5)]
|
|
public class BAttribute : AAttribute
|
|
{
|
|
public BAttribute () : base ()
|
|
{
|
|
}
|
|
|
|
public BAttribute (int a) : base (a)
|
|
{
|
|
}
|
|
}
|