https://issues.dlang.org/show_bug.cgi?id=13902

--- Comment #1 from Andrei Alexandrescu <[email protected]> ---
One more simple case, equivalent in fact because statically-sized arrays behave
like structs:

ref int lun() {
    int a[42];
    return a[5];
}

This should also be disallowed directly.

--

Reply via email to