aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-07-24 22:06:58 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-07-24 22:06:58 +0100
commit9d8355d3612e65a5764640fb972bc4ef9f013088 (patch)
tree7d9d9a4c43ba7cf9c952d4f5c0d8e244612e36c0 /examples
parent3fe7fc344d7d17a571a01e531db4a0e5ff057c9f (diff)
Branch Statements, if init statement, File parsing errors
Diffstat (limited to 'examples')
-rw-r--r--examples/other.odin1
-rw-r--r--examples/test.odin10
2 files changed, 1 insertions, 10 deletions
diff --git a/examples/other.odin b/examples/other.odin
index e69de29bb..1e2db5d7d 100644
--- a/examples/other.odin
+++ b/examples/other.odin
@@ -0,0 +1 @@
+TAU :: 6.28;
diff --git a/examples/test.odin b/examples/test.odin
index 8d23dbaa3..e69de29bb 100644
--- a/examples/test.odin
+++ b/examples/test.odin
@@ -1,10 +0,0 @@
-main :: proc() {
- type Vec2: struct { x, y: f32; }
- v := Vec2{1, 1};
- a := [2]int{1, 2}; // Array 2 of int
- s := []int{1, 2}; // Slice of int
- _, _ = a, s;
- // Equivalent to
- // sa := [2]int{1, 2}; s := sa[:];
- v.x = 1;
-}