mirror of
https://github.com/dlang/phobos.git
synced 2025-05-14 08:55:54 +03:00
Add missing imports to public unittests
This commit is contained in:
parent
3f8298e853
commit
cc7f125ed1
15 changed files with 49 additions and 8 deletions
|
@ -1196,6 +1196,8 @@ bool mayPointTo(S, T)(auto ref const shared S source, ref const shared T target)
|
|||
//To check the class payload itself, iterate on its members:
|
||||
()
|
||||
{
|
||||
import std.traits : Fields;
|
||||
|
||||
foreach (index, _; Fields!C)
|
||||
if (doesPointTo(a.tupleof[index], i))
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue