mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
21 lines
456 B
D
21 lines
456 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice9284.d(14): Error: template `__ctor` is not callable using argument types `!()(int)`
|
|
fail_compilation/ice9284.d(12): Candidate is: `this()(string)`
|
|
fail_compilation/ice9284.d(20): Error: template instance `ice9284.C.__ctor!()` error instantiating
|
|
---
|
|
*/
|
|
|
|
class C
|
|
{
|
|
this()(string)
|
|
{
|
|
this(10);
|
|
// delegating to a constructor which not exists.
|
|
}
|
|
}
|
|
void main()
|
|
{
|
|
new C("hello");
|
|
}
|