mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
14 lines
304 B
D
14 lines
304 B
D
// REQUIRED_ARGS: -preview=dip1021
|
|
// https://issues.dlang.org/show_bug.cgi?id=21882
|
|
bool buildPath()
|
|
{
|
|
struct ByCodeUnitImpl
|
|
{
|
|
auto opIndex(size_t) { }
|
|
}
|
|
return isRandomAccessRange!ByCodeUnitImpl;
|
|
}
|
|
|
|
enum isRandomAccessRange(R) = is(typeof(lvalueOf!R[1]));
|
|
|
|
ref T lvalueOf(T)();
|