The following code refuses to compile:
Nullable!(Nullable!int) nni = Nullable!(Nullable!int)(10);
With this error message:
Error: inout method nullable.Nullable!(Nullable!(immutable(int))).Nullable.this is not callable using a mutable object
Why?
It seems like a bad error message.
The argument to the constructor of
Nullable!(T)isT. In this case,Tis aNullable!int, but you're passing in anint. You need to wrap theintin a nullable.