...
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
import "c";
|
||||
|
||||
struct Human {
|
||||
age: int64;
|
||||
age: int64 = 0;
|
||||
name: string;
|
||||
}
|
||||
|
||||
global func main() {
|
||||
printName();
|
||||
while true {
|
||||
let dad = new Human
|
||||
{
|
||||
name = "John";
|
||||
};
|
||||
|
||||
printName(dad);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func printName(human: Human) {
|
||||
|
||||
Reference in New Issue
Block a user