dmd/compiler/test/fail_compilation/ice21095.d
2022-07-09 18:53:07 +02:00

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 { }
}