Typescript-like syntax

This commit is contained in:
2026-04-13 16:23:17 +02:00
parent c73b387230
commit f99968c638
3 changed files with 40 additions and 17 deletions
+9 -1
View File
@@ -1,5 +1,13 @@
import "fmt";
fn main() {
function add(a: int, b: int) -> int {
const x = 10;
if (x > 5) {
return x;
}
return 0;
}
function main() {
fmt.Println("Hello World!");
}