summaryrefslogtreecommitdiffhomepage
path: root/example/example_02_nectar/example.nc
blob: fdaadcdf8eca3e1da22b1e6eaeea4bf9e863c757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern exit;

trait foo {
   let exit();
};

let foo.exit() {
    exit(0);
}

const main() {
  let self := 0;
  foo.exit();
  return 0;
}