mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Fix spurious message during compilation of Phobos
This commit is contained in:
parent
541dd2a147
commit
c0ccf7fffe
1 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,9 @@ struct Map(alias fun, Range) if (isInputRange!(Unqual!Range))
|
|||
{
|
||||
alias Unqual!Range R;
|
||||
alias fun _fun;
|
||||
alias typeof(fun(.ElementType!R.init)) ElementType;
|
||||
// Uncomment this to reveal a @@@BUG@@@ in the compiler
|
||||
//alias typeof(fun(.ElementType!R.init)) ElementType;
|
||||
alias typeof({ return fun(.ElementType!R.init); }()) ElementType;
|
||||
R _input;
|
||||
|
||||
static if (isBidirectionalRange!(R))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue