[Issue 19107] -de produces compilation error, -dw does not

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 26 00:24:58 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19107

--- Comment #2 from Mike Franklin <slavo5150 at yahoo.com> ---
Further reduced to no longer require Phobos:

--- sing.d
module sing;

alias I(alias A) = A;


--- git.d
import sing : I;


--- manager.d
module manager;
import git;

template all(alias pred = "a")
{
    bool all(T)(T range)
        if (is(typeof(I!pred(range))))
    {
        return false;
    }
}

class DManager
{
    void getCacheState(string[] history)
    {
        string[] componentNames;

        foreach (submoduleCommits; history)
        {
            componentNames.all!(componentName => componentName.I!(component =>
component));
        }
    }
}

--


More information about the Digitalmars-d-bugs mailing list