This commit is contained in:
nub31
2025-05-17 22:25:39 +02:00
parent db57b0775a
commit 6df13862a5
2 changed files with 57 additions and 45 deletions

View File

@@ -1,5 +1,23 @@
import c
global func main(argc: i64, argv: i64) {
struct Test {
name: ^string
}
struct Test2 {
parent: ^Test
}
global func main(argc: i64, argv: i64) {
name = "Oliver"
parent = new Test {
name = &name
}
test = new Test2 {
parent = &parent
}
printf("%s\n", test.parent^.name^)
}