This commit is contained in:
nub31
2025-09-12 21:55:39 +02:00
parent 1eeeb67d88
commit 4c4d655f43
6 changed files with 246 additions and 191 deletions

View File

@@ -1,15 +1,18 @@
module "main"
import "test"
export extern "puts" func puts(text: cstring)
export struct Test1
export struct Human
{
test2: ^test::Test2
name: cstring
}
extern "main" func main(args: []cstring): i64
{
puts("test")
let x: Human = {
name = "test"
}
puts(x.name)
return 0
}

View File

@@ -1,7 +0,0 @@
module "test"
import "main"
export struct Test2
{
test1: ^main::Test1
}