mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-21 00:46:47 +00:00
Begin transition to Jai-like syntax
This commit is contained in:
+5
-2
@@ -11,7 +11,7 @@ import {
|
||||
win32 "sys/windows.odin";
|
||||
}
|
||||
|
||||
const Thing = enum f64 {
|
||||
Thing :: enum f64 {
|
||||
_, // Ignore first value
|
||||
A = 1<<(10*iota),
|
||||
B,
|
||||
@@ -19,6 +19,9 @@ const Thing = enum f64 {
|
||||
D,
|
||||
};
|
||||
|
||||
const main = proc() {
|
||||
main :: proc() {
|
||||
fmt.println(Thing.A, Thing.B, Thing.C, Thing.D);
|
||||
|
||||
x := 123;
|
||||
fmt.println(x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user