[Mono-dev] Bug? Inconsistent visibility for delegate type.

Martin Baulig martin at ximian.com
Thu Jun 22 12:12:59 EDT 2006


Hello,

can you please file a bug report ?

Thanks,
Martin

On Sat, 2006-06-17 at 19:21 +1000, David Toso wrote:
> using System;
> using System.Collections.Generic;
> 
> namespace Foo
> {
>   public class Bar
>   {
>     public    class PublicBaz    { public string id; }
>     protected class ProtectedBaz { public string id; }
>     private   class PrivateBaz   { public string id; }
> 
>     private void Test()
>     {
>       string nice = "dave";
>       List<PublicBaz>    pub = new List<PublicBaz>();
>       List<ProtectedBaz> prt = new List<ProtectedBaz>();
>       List<PrivateBaz>   prv = new List<PrivateBaz>();
> 
>       pub = pub.FindAll(delegate (PublicBaz b)    { return b.id ==
> nice; });
>       prt = prt.FindAll(delegate (ProtectedBaz b) { return b.id ==
> nice; });
>       prv = prv.FindAll(delegate (PrivateBaz b)   { return b.id ==
> nice; });
>     }
> 
>     public static void Main(string [] args)
>     {
>       (new Bar()).Test();
>     }
>   }
> } 




More information about the Mono-devel-list mailing list