mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
22 lines
352 B
D
22 lines
352 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail142.d(21): Error: cannot create instance of abstract class `B`
|
|
fail_compilation/fail142.d(15): class `B` is declared here
|
|
fail_compilation/fail142.d(12): function `void test()` is not implemented
|
|
---
|
|
*/
|
|
|
|
class A
|
|
{
|
|
abstract void test() {}
|
|
}
|
|
|
|
class B : A
|
|
{
|
|
}
|
|
|
|
void main()
|
|
{
|
|
B b = new B();
|
|
}
|