www.digitalmars.com         C & C++   DMDScript  

D - Bug

reply Matthias Becker <Matthias_member pathlink.com> writes:
class Foo {
template tmethod (T) {
public static void tmethod (T param)
{
}
}
}


int main (char [][] args)
{
Foo foo = new Foo;

Foo.tmethod!(int)(42);

return 0;
}



dmd simply crashes.


And now replace it by some wron code:

//Foo.tmethod!(int)(42);
Foo.tmethod;  // doesn't make sence, I know


Now you get a strange assert.
Feb 08 2004
parent "Walter" <walter digitalmars.com> writes:
I think I know what's going wrong. I'll take care of it. -Walter
Feb 08 2004