Allow building with GDC 10.3

This commit is contained in:
2021-05-26 10:29:03 +02:00
parent 938a1bb5b4
commit 4f48544297
10 changed files with 213 additions and 66 deletions

View File

@ -39,7 +39,11 @@ import tanya.test.stub;
int value;
void opCall(int value) @nogc nothrow pure @safe
in (this.value == 0)
in
{
assert(this.value == 0);
}
do
{
this.value = value;
}

View File

@ -12,18 +12,6 @@ private struct Container
}
}
// Broken test because of the issue #20006.
@nogc nothrow pure @safe unittest
{
auto func()()
{
Container container;
return backInserter(container);
}
// static assert(!is(typeof(func!())));
static assert(is(typeof(func!())));
}
@nogc nothrow pure @safe unittest
{
Container container;