feat: execute compile-time matches in type procedures

This commit is contained in:
2026-10-26 17:31:45 +01:00
parent 8c174e8756
commit 85c60f2416
5 changed files with 266 additions and 11 deletions
+5 -2
View File
@@ -90,10 +90,13 @@ recompiles_specialized_calls_without_borrowing_previous_ir test {
` Element := i8
` length usize := 0
` while (length < N) {
` Element = i16
` match length { 0: Element = i16, else: Element = i16 }
` length = length + 1
` }
` return struct { values [length]Element }
` return match length {
` 2: struct { values [length]Element },
` else: i8(128),
` }
`}
`data proc() [2]i16 { return [40, 2] }
`main proc() i16 {