void main() {
double[] x;
auto y = Result(0, x.length);
static if(is(typeof(x[] = y[]))) {} // This line needs to be there.
}
static struct Result {
this(size_t current, size_t pastLast) {}
auto opSlice() { return this; }
}
Error message:
Assertion failure: 't1n && t2n' on line 9612 in file 'expression.c'