aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/mutable.sloth7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/mutable.sloth b/examples/mutable.sloth
new file mode 100644
index 0000000..7ea6a96
--- /dev/null
+++ b/examples/mutable.sloth
@@ -0,0 +1,7 @@
+fn main() {
+ val test = 0;
+ println(istr(test));
+ #test = 1;
+ println(istr(test));
+ return 0;
+}