blob: eff2db3c7c48195a48b092baea0325ce344018a4 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=16047
module test16047;
void main()
{
Reassignable[int][int] aa;
aa[0][0] = Reassignable.init;
aa[s()][0] = Reassignable.init; // range violation
}
struct Reassignable
{
void opAssign(Reassignable) {}
}
int s() { return 1; }