void foo(int[2]) {}
void bar(int[]) {}
void main() @nogc {
    foo([1, 2]s);
    bar([1, 2]s);
}

Perhaps better:

void foo(int[2]) {}
void bar(scope int[]) {}
void main() @nogc {
    foo([1, 2]s);
    bar([1, 2]s);
}

Bye,
bearophile

Reply via email to