mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
478 B
D
15 lines
478 B
D
// https://issues.dlang.org/show_bug.cgi?id=21095
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice21095.d(14): Error: constructor `ice21095.Mutex.__ctor!().this` `in` and `out` contracts can only appear without a body when they are virtual interface functions or abstract
|
|
fail_compilation/ice21095.d(12): Error: template instance `ice21095.Mutex.__ctor!()` error instantiating
|
|
---
|
|
*/
|
|
class Mutex
|
|
{
|
|
this(Object obj) {
|
|
this(obj, true);
|
|
}
|
|
this()(Object, bool) in { }
|
|
}
|