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

2018-07-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19107

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/305f34e3ba8a46ba81e55c968c1da0f06fe3fe9e
Fix Issue 19107 - -de produces compilation error, -dw does not

https://github.com/dlang/dmd/commit/03e7693150c453055b098768e59ebd31cb3ca52e
Merge pull request #8519 from JinShil/fix_19107

Fix Issue 19107 - -de produces compilation error, -dw does not

--


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

2018-07-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19107

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


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

2018-07-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19107

--- Comment #3 from Mike Franklin  ---
Even further reduced:

--- sing.d
module sing;

alias I(alias A) = A;


--- git.d
import sing : I;


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

template all(alias pred)
{
void all(T)(T t)
if (is(typeof(I!pred(t
{ }
}

void main(string[] args)
{
args.all!(c => c);
}

--


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

2018-07-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19107

--- Comment #2 from Mike Franklin  ---
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));
}
}
}

--


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

2018-07-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19107

--- Comment #1 from Mike Franklin  ---
Further reduced:

--- sing.d
module sing;

alias I(alias A) = A;


--- git.d
import sing : I;


--- manager.d
module manager;

import std.algorithm;
import git;

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

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

--