Compiler segfault when getting a nonexistant member from an unnamed struct #2533.

This commit is contained in:
Christoffer Lerno
2025-10-20 00:03:15 +02:00
parent 0bd2c81757
commit 4af31da7ea
3 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
struct Test
{
struct { int x; }
}
fn void main()
{
Test t;
Test.membersof[0].get(t).x;
Test.membersof[0].get(t).y; // #error: here is no field or method 'Test.(anon).y'
}