www.digitalmars.com         C & C++   DMDScript  

D - Bug: typeof

The following code causes this error:
Assertion failure: '0' on line 2642 in file 'mtype.c'

abnormal program termination


class Foo(T)
{
	class Bar { T asdf; }
}
int main()
{
	Foo!(int) hi;
	hi = new typeof(hi); // nice
	
	typeof(hi).Bar hey; // error here
	
	return 1;
}
Jan 17 2004