Stupid me! Yeah you are right, well still I make the same mistake all
over again. tc is not a variant.
I will update the patch and revert that line to | tc' when
tc'.Equals(tc) => true; or may be a to a simple if-else if -else
For the main issue, I haven't checked the specs, but I compared to
code with C#. C# compiles the equivalent successfully.
Thanks for looking into this
On Jul 3, 1:17 pm, Dmitry Ivankov <
divanor...@gmail.com> wrote:
> Hibe
>
> On Mon, Jun 29, 2009 at 12:03 AM,
empe...@gmail.com <
empe...@gmail.com>wrote:
>
>
>
>
>
> > Hello,
>
> > The following code should normally compiled successfully but Nemerle
> > fails with "less accessable" error:
>
> > class Foo
> > {
> > protected class Bar
> > {
> > public foo:Foo;
> > }
>
> > public static Main():void
> > {
> > System.Console.WriteLine ("OK")
> > }
> > }
>
> > The main issue was public is valid for foo even Bar can be protected.
> > Nested types can fully access DeclaredTypes regardless their
> > accessors.
>
> > The patch is here :
>
> >
http://nemerle-en.googlegroups.com/web/nested-type-accessor.patch?gda...