...
This commit is contained in:
@@ -8,18 +8,14 @@ struct Human
|
||||
|
||||
export func main(args: []cstring): i64
|
||||
{
|
||||
let x: i64
|
||||
let x: Human
|
||||
|
||||
x = 23
|
||||
x = alloc Human {
|
||||
name = "john"
|
||||
age = 23
|
||||
}
|
||||
|
||||
if (x == 23)
|
||||
{
|
||||
c::printf("true\n")
|
||||
}
|
||||
else
|
||||
{
|
||||
c::printf("false\n")
|
||||
}
|
||||
c::puts(x.name)
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user