Refactoring codegen with Flat / Lowered types. Helpers for struct gep. type_get_indexed_type no longer returns the canonical type, fixes issues in #2534

This commit is contained in:
Christoffer Lerno
2025-10-21 16:53:38 +02:00
parent 5d8cad91b1
commit 9cf271f5fb
11 changed files with 72 additions and 84 deletions

View File

@@ -0,0 +1,7 @@
alias MyChar = char;
fn void main()
{
MyChar[<2>] my = { '1', '2' };
my[0].ok(); // #error: There is no member or method 'ok' on 'MyChar' (char)
}