Allow building with GDC 10.3
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user