https://issues.dlang.org/show_bug.cgi?id=21882
Iain Buclaw <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Iain Buclaw <[email protected]> --- Reduced test that compiles with -preview=dip1000, but not dip1021. --- @property deleteme() { char[] cache; buildPath(cache); } char[] buildPath(char[][]) { struct ByCodeUnitImpl { auto opIndex(size_t ) { } } assert(isRandomAccessRange!ByCodeUnitImpl); return []; } char[] buildPath(C)(C[][] paths...) { return buildPath(paths); } enum isRandomAccessRange(R) = is(typeof(lvalueOf!R[1])); ref T lvalueOf(T)(); --- --
