Comment #0 by pro.mathias.lang — 2014-07-12T02:30:33Z
This code fails to compile under master (2206d5075df746a7da28ad3697f6f6514e5217ca) and 2.065.0:
import std.typecons : Rebindable, rebindable;
struct Test {
Rebindable!(Object) obj;
Rebindable!(const Object) cobj;
}
void main()
{
Test t1; // Okay
Test t2 = Test(null); // Okay
t2.cobj = null; // Still okay
Test t3 = Test(null, null); // Error: cannot implicitly convert expression (null) of type typeof(null) to Rebindable!(const(Object))
}
Comment #1 by robert.schadek — 2024-12-01T16:21:50Z