Errors with typeid

bearophile bearophileHUGS at lycos.com
Thu Jul 29 17:17:20 PDT 2010


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


More information about the Digitalmars-d-learn mailing list