Thread overview
Bug: Template class inheriting from another template class.
Jan 26, 2004
Andy Friesen
Jan 26, 2004
J Anderson
Jan 26, 2004
Andy Friesen
January 26, 2004
Given:

    class C() {
        void foo() {
            printf("C ");
        }
    }

    class E(T) : C!() {
        void foo()
        {
            printf("E ");
            super.foo();
        }
    }

    alias E!(int) Eint;

    void main() {
        Eint eint = new Eint();
        eint.foo();
    }

The compiler spits out:

    test2.d(23): Eint is used as a type


 -- andy
January 26, 2004
Andy Friesen wrote:

> Given:
>
>     class C() {
>         void foo() {
>             printf("C ");
>         }
>     }
>
>     class E(T) : C!() {
>         void foo()
>         {
>             printf("E ");
>             super.foo();
>         }
>     }
>
>     alias E!(int) Eint;
>
>     void main() {
>         Eint eint = new Eint();
>         eint.foo();
>     }
>
> The compiler spits out:
>
>     test2.d(23): Eint is used as a type
>
>
>  -- andy

Humm, works for me.

-- 
-Anderson: http://badmama.com.au/~anderson/
January 26, 2004
J Anderson wrote:
> 
> Humm, works for me.
> 

doh.  It works in 0.79.

 -- andy