Revert "Revert 0.7.6 code for 0.7.5 re-release"

This reverts commit d1349c9cfb.
This commit is contained in:
Christoffer Lerno
2025-09-05 23:30:35 +02:00
parent d1349c9cfb
commit e605a21fd3
63 changed files with 1148 additions and 796 deletions

View File

@@ -0,0 +1,14 @@
fn int main(String[] args)
{
MyArray a = {{1, 4, 3, 6, 5}};
a[0] = a[1]; // #error: Assigning to a subscript of 'MyArray' is not possible
return 0;
}
struct MyArray
{
int[] val;
}
fn int MyArray.get(self, usz idx) @operator([]) => self.val[idx];
fn usz MyArray.len(self) @operator(len) => self.val.len;