summaryrefslogtreecommitdiff
path: root/examples/mathTest.nya
blob: 280d53d0e0f4fd232c1532f4d90ac4e92fb00b18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import fn puts(str: [u8]) -> i32;

fn test() -> i32 {
    const: i32 pog = 5;
    return pog;
}

fn main() -> i32 {
    const: i32 num = 5;
    const: i32 num2 = test();
    puts("Hello World!");
    return num2;
}