Skip to content

Draft: Disallow `ref` and `out` for inline-allocated arrays

Akarin requested to merge akarin123/vala:ref_out_inline_array into master

This draft is an initial attempt to address #925, that is to disallow ref and out parameters for inline-allocated arrays, since the callee might reallocate or reassign the array. In fact, passing inline-allocated array to ref or out parameter will cause segfaults as mentioned in the issue after such code being compiled (with warnings) and run.

Edited by Akarin

Merge request reports