This commit is contained in:
nub31
2025-10-26 16:07:49 +01:00
parent 828e20ddb6
commit 3febaaea81
15 changed files with 256 additions and 44 deletions

View File

@@ -0,0 +1,20 @@
module main
extern "puts" func puts(text: ^i8)
struct Human
{
age: u64
name: ^i8
}
extern "main" func main(argc: i64, argv: [?]^i8): i64
{
let x: &Human = {
age = 23
name = "test"
}
puts(x^.name)
return 0
}