December 05, 2005
The following fails to compile:

struct Foo
{
        struct Bar(T)
        {
                static void bar() {}
        }
}

void main()
{
        Foo.Bar!(char).bar();
}

If Foo is a class, then it compiles fine.


December 10, 2005
Kris schrieb am 2005-12-05:
> The following fails to compile:
>
> struct Foo
> {
>         struct Bar(T)
>         {
>                 static void bar() {}
>         }
> }
>
> void main()
> {
>         Foo.Bar!(char).bar();
> }
>
> If Foo is a class, then it compiles fine.

Added to DStress as http://dstress.kuehne.cn/run/s/static_35_A.d http://dstress.kuehne.cn/run/s/static_35_B.d http://dstress.kuehne.cn/run/s/static_35_C.d http://dstress.kuehne.cn/run/s/static_35_D.d http://dstress.kuehne.cn/run/s/static_35_E.d http://dstress.kuehne.cn/run/s/static_35_F.d

Thomas