aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-09-13 14:58:28 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2023-09-13 14:58:28 -0500
commit0cef7e7f25b3bcd49f6525bc80ab0ad8297f27b2 (patch)
tree8ad31044e738c586dcd22695d7e1bb615269f112 /examples
parent2ab284b39ba2abd05d4cbc1da74582329ab84807 (diff)
downloadsloth-0cef7e7f25b3bcd49f6525bc80ab0ad8297f27b2.tar.gz
pre-clippy
Diffstat (limited to 'examples')
-rw-r--r--examples/struct.sloth8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/struct.sloth b/examples/struct.sloth
new file mode 100644
index 0000000..a9f9750
--- /dev/null
+++ b/examples/struct.sloth
@@ -0,0 +1,8 @@
+fn main() Int {
+ struct Time {
+ var hr: Int;
+ var mn: Int;
+ }
+ println("Hello Struct");
+ return 0;
+}