summaryrefslogtreecommitdiffhomepage
path: root/example/example_02_nectar/example.nc
diff options
context:
space:
mode:
Diffstat (limited to 'example/example_02_nectar/example.nc')
-rw-r--r--example/example_02_nectar/example.nc16
1 files changed, 4 insertions, 12 deletions
diff --git a/example/example_02_nectar/example.nc b/example/example_02_nectar/example.nc
index fdaadcd..5e95c44 100644
--- a/example/example_02_nectar/example.nc
+++ b/example/example_02_nectar/example.nc
@@ -1,15 +1,7 @@
extern exit;
-trait foo {
- let exit();
-};
-
-let foo.exit() {
- exit(0);
-}
-
-const main() {
- let self := 0;
- foo.exit();
- return 0;
+const main()
+{
+ let foo := exit(0);
+ return 0;
}