Didn't find an existing issue for this. Sorry, if missed. As described here: https://forum.dlang.org/post/iizchhylkxistlnbijzd@forum.dlang.org There is an error during an attempt to fill an array of Nullable!uint during the execution of void main() { import std.typecons; Nullable!uint[] arr; arr.length = 5; arr[] = 1; } The suggested workaround is, currently, using a cast: arr[] = cast(Nullable!uint)1; Also an option would be: import std.algorithm; fill(arr, 1);
The error is: Error: cannot implicitly convert expression (1) of type int to Nullable!uint[]
filling via arr[] = Nullable!uint(1); is also possible
This is not a compiler bug, but at most a phobos one.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10166 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB