X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0122-12.cs;h=9a0c42bcfb5ff7b0550d8cc126d0c97e2c6b13ba;hb=8936bf96686a4a5081635868bcb6f9a449b02f73;hp=b82d9a5c483bd7cae8de5a31cdc43da3d49100a7;hpb=ff228e1c801bda9666b6edab3ee962e05edcf480;p=mono.git diff --git a/mcs/errors/cs0122-12.cs b/mcs/errors/cs0122-12.cs index b82d9a5c483..9a0c42bcfb5 100644 --- a/mcs/errors/cs0122-12.cs +++ b/mcs/errors/cs0122-12.cs @@ -1,15 +1,17 @@ -// cs0122.cs: 'Base.Base(string)' is inaccessible due to its protection level -// Line: 12 -class Base { - Base (string x) - { - } -} +// CS0122: `Test.SomeAttribute.SomeAttribute()' is inaccessible due to its protection level +// Line: 10 -// Notice how there is no invocation to "base (something)" +using System; -class Derived : Base { - Derived () +namespace Test +{ + public class SomeAttribute : Attribute { + SomeAttribute() {} } + + [SomeAttribute] + public class SomeClass + { + } }