mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Remove alias this from classes in phobos
This commit is contained in:
parent
6eaa69f12d
commit
61658d2372
4 changed files with 2 additions and 191 deletions
16
std/array.d
16
std/array.d
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue