Found issue with stack allocated structs and possibly arrays. Must be investigated further

This commit is contained in:
nub31
2025-01-31 23:48:30 +01:00
parent 16a031823e
commit 8c21483f74
6 changed files with 172 additions and 24 deletions

View File

@@ -3,12 +3,25 @@ import "core";
func main() {
let x = new Test
{
some_string = "test2",
some_struct = new Test
{
some_struct = 0,
some_int = 420,
some_string = "blaze it"
},
some_int = 69,
some_string = "nice"
};
println(x.some_int);
println(x.some_string);
println(x.some_struct.some_int);
println(x.some_struct.some_string);
}
struct Test {
let some_struct: Test;
let some_string: String;
let some_int: int64;
}