Remove alias this from classes in phobos

This commit is contained in:
RazvanN7 2023-01-26 14:35:08 +02:00
parent 6eaa69f12d
commit 61658d2372
4 changed files with 2 additions and 191 deletions

View file

@ -2294,22 +2294,6 @@ if (isInputRange!RoR &&
}
}
// https://issues.dlang.org/show_bug.cgi?id=10895
@safe unittest
{
static class A
{
string name;
alias name this;
this(string name) { this.name = name; }
}
auto a = [new A(`foo`)];
assert(a[0].length == 3);
auto temp = join(a, " ");
assert(a[0].length == 3);
assert(temp.length == 3);
}
// https://issues.dlang.org/show_bug.cgi?id=14230
@safe unittest
{