blob: 343b2e3c731b5f269c21eb05f7071db742d82319 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
TEST_OUTPUT:
---
fail_compilation/fail142.d(20): Error: cannot create instance of abstract class `B`
fail_compilation/fail142.d(20): function `void test()` is not implemented
---
*/
class A
{
abstract void test() {}
}
class B : A
{
}
void main()
{
B b = new B();
}
|