mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Variable declaration and assign, unary operators
This commit is contained in:
+4
-9
@@ -1,11 +1,6 @@
|
||||
main :: proc() {
|
||||
// x : string;
|
||||
// x = "Hello";
|
||||
x : int;
|
||||
x = 137;
|
||||
x = 1 + x;
|
||||
|
||||
y : f32;
|
||||
y = 1.01;
|
||||
y = y + 0.99;
|
||||
a, b := 1, 2;
|
||||
a++;
|
||||
b++;
|
||||
a += b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user