a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
22 lines
417 B
C#
22 lines
417 B
C#
// CS0108: `O.InnerAttribute' hides inherited member `Base.InnerAttribute()'. Use the new keyword if hiding was intended
|
|
// Line: 12
|
|
// Compiler options: -warnaserror -warn:2
|
|
|
|
using System;
|
|
|
|
public class Base
|
|
{
|
|
public void InnerAttribute () {}
|
|
}
|
|
|
|
class O: Base
|
|
{
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public sealed class InnerAttribute: Attribute {
|
|
}
|
|
}
|
|
|
|
class D {
|
|
static void Main () {}
|
|
}
|