...
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
module "test"
|
||||
import "main"
|
||||
|
||||
export struct Test2
|
||||
{
|
||||
test1: ^main::Test1
|
||||
}
|
||||
Reference in New Issue
Block a user