aboutsummaryrefslogtreecommitdiff
path: root/examples/hello.sloth
blob: a955e66702381bf7f52fec0b9ee92eea34525761 (plain)
1
2
3
4
5
6
7
8
9
10
11
foreign fn example(arg: Int) Void;

fn main() {
    var i: Int = 10;
    var j: Int = 1.0 - 1;
    while i > j {
        i = i - 1;
    }
    example(i);
}