blob: 87a166a690c0d534aed8e625ce468ed2653ea700 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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)();
|