This repository has been archived on 2025-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive-2/example/main.nub
2025-06-08 15:54:36 +02:00

24 lines
279 B
Plaintext

namespace main
struct Human {
age: u64
print_age: func() = () => {
}
}
export func main(args: []^string): i64 {
let me = alloc Human {
age = 23
}
me.print_age()
print_age()
return 0
}
func print_age() {
c::puts("TEST")
}