...
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import "c";
|
||||
|
||||
global func main() {
|
||||
let x = true;
|
||||
while x {
|
||||
if (true) {
|
||||
puts("level 1");
|
||||
}
|
||||
puts("level 2");
|
||||
break;
|
||||
}
|
||||
struct Human {
|
||||
age: int64;
|
||||
name: string;
|
||||
}
|
||||
|
||||
global func main() {
|
||||
printName();
|
||||
}
|
||||
|
||||
func printName(human: Human) {
|
||||
puts(human.name);
|
||||
}
|
||||
Reference in New Issue
Block a user