From 5711de4f146b543e08bb154c69d5b495a9dcd692 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Wed, 6 Sep 2023 11:49:46 -0500 Subject: Immutables --- examples/mutable.sloth | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/mutable.sloth (limited to 'examples') 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; +} -- cgit v1.2.3