Regression: "'out' parameters may not be read" when writing to array #2852

This commit is contained in:
Christoffer Lerno
2026-01-27 13:48:50 +01:00
parent 4fbb42833e
commit f3ede27f60
2 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
struct Foo
{
int[2] a;
}
<*
@param [&out] bar
*>
fn void foo(Foo* bar)
{
bar.a[0] = 0;
}
fn int main() => 0;