...
This commit is contained in:
@@ -2,16 +2,14 @@ module "main"
|
||||
|
||||
extern "puts" func puts(text: cstring)
|
||||
|
||||
struct Test
|
||||
{
|
||||
data: [23]cstring
|
||||
}
|
||||
|
||||
extern "main" func main(argc: i64, argv: [?]cstring): i64
|
||||
{
|
||||
let names = struct Test {}
|
||||
let names: []cstring = ["test", "test2"]
|
||||
|
||||
for name, i in names.data
|
||||
puts(names[0])
|
||||
puts(names[1])
|
||||
|
||||
for name, i in names
|
||||
{
|
||||
puts(name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user