https://issues.dlang.org/show_bug.cgi?id=12698
--- Comment #6 from Kenji Hara <[email protected]> --- (In reply to Andrej Mitrovic from comment #5) > (In reply to Kenji Hara from comment #4) > > (In reply to Andrej Mitrovic from comment #3) > > > Because it's accidental. char[] is not an output range, but byte[] is. > > > > > > This is because of the definition of output range. > > So this is Phobos issue, not compiler's. > > I thought disallowing this was the point of function hijacking prevention? If a 'copy' call matches only for std.file.copy, the importing of std.algorithm won't hijack the call. Therefore, there's *no* hijacking which should be prevented. We cannot disallow nonexistent hijacking. --
