digitalmars.D.bugs - BUG: Abstract class instantiation
- Russell (17/17) May 05 2004 The compiler will let me instantiate a class defined as abstract. The f...
The compiler will let me instantiate a class defined as abstract. The following
code compiles and runs fine!?!
abstract class Test1
{
this()
{
printf("How can this be?\n");
}
}
int main ( char [] [] args )
{
Test1 t1 = new Test1();
return 1;
}
This code compiles and runs ok outputting the message in the abstract class
constructor. I believe this code should fail at compilation?
Russell
May 05 2004








Russell <Russell_member pathlink.com>