string func(int a, int[int] b = []) { return "mem1"; }
void main() { func(1); } $ dmd testtest.d(8): Error: cannot implicitly convert expression ([]) of type void[] to int[int]
This doesn't work either string func(int a, int[int] b = int[int].init) { return "mem1"; } void main() { func(1); }