mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
24 lines
409 B
D
24 lines
409 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice9273a.d(19): Error: constructor `ice9273a.C.__ctor!().this` no match for implicit `super()` call in constructor
|
|
fail_compilation/ice9273a.d(23): Error: template instance `ice9273a.C.__ctor!()` error instantiating
|
|
---
|
|
*/
|
|
|
|
template CtorMixin()
|
|
{
|
|
this(T)() {}
|
|
}
|
|
class B
|
|
{
|
|
mixin CtorMixin!();
|
|
}
|
|
class C : B
|
|
{
|
|
this()() {}
|
|
}
|
|
void main()
|
|
{
|
|
auto c = new C();
|
|
}
|