X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0122-8.cs;h=5f115025ed013d3dd6befc92266a8bc427d3e160;hb=233bbcaaa3aa9f100ef6266236bf0b5a32b49a65;hp=b61b31720f4d6f42e255f07fa2c1ba8280e4053e;hpb=a097b5471761180c4aae2dab224ed9caeeae3e86;p=mono.git diff --git a/mcs/errors/cs0122-8.cs b/mcs/errors/cs0122-8.cs index b61b31720f4..5f115025ed0 100644 --- a/mcs/errors/cs0122-8.cs +++ b/mcs/errors/cs0122-8.cs @@ -1,23 +1,11 @@ -// cs0122-8.cs: `A.member' is inaccessible due to its protection level -// Line: 17 -// NOTE: if `member' were a field or a property, this'd be CS1540 +// CS0122: `A.AA.Foo()' is inaccessible due to its protection level +// Line: 16 +// Compiler options: -r:CS0122-8-lib.dll -using System; - -class A -{ - protected event EventHandler member; -} - -class B : A +public class Test { - static void Main () - { - A a = new A (); - a.member += Handler; - } - - static void Handler (object sender, EventArgs args) {} + public static void Main () + { + new B.BB ().Foo (); + } } - -