...
This commit is contained in:
@@ -6,20 +6,16 @@ struct Human
|
||||
age: i64
|
||||
}
|
||||
|
||||
func test() {
|
||||
|
||||
}
|
||||
|
||||
export func main(args: []cstring): i64
|
||||
{
|
||||
let x: []cstring
|
||||
let x: Human
|
||||
|
||||
x = [2]cstring
|
||||
x = alloc Human {
|
||||
name = "John"
|
||||
age = 32
|
||||
}
|
||||
|
||||
x[0] = "test1"
|
||||
x[1] = "test2"
|
||||
|
||||
c::puts(x[1])
|
||||
c::puts(x.name)
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user