mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
459 B
D
20 lines
459 B
D
// https://issues.dlang.org/show_bug.cgi?id=14997
|
|
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail14997.d(19): Error: none of the overloads of `this` are callable using argument types `()`
|
|
fail_compilation/fail14997.d(14): Candidates are: `fail14997.Foo.this(int a)`
|
|
fail_compilation/fail14997.d(15): `fail14997.Foo.this(string a)`
|
|
---
|
|
*/
|
|
|
|
class Foo
|
|
{
|
|
this (int a) {}
|
|
this (string a) {}
|
|
}
|
|
void main()
|
|
{
|
|
auto a = new Foo;
|
|
}
|