www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Errors with typeid

This is wrong D2 code, with one bug I've created yesterday, it generates an
interesting sequence of error messages:
http://ideone.com/MUkrN
Is this example worth for Bugzilla?


template Tuple(T...) { alias T Tuple; }
void main() {
    alias Tuple!(int) foo;
    auto x = typeid(foo[int]);
}

Bye,
bearophile
Jul 29 2010