blob: 0d87d63bb01308926f72fcf0f614c06866434c7d [file] [log] [blame]
// 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 { }
}