mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-26 15:34:59 -07:00
Begin writing dynamic map procs and fix using bug in IR
This commit is contained in:
+8
-3
@@ -12,9 +12,14 @@
|
||||
|
||||
main :: proc() {
|
||||
Value :: type f32;
|
||||
m0: map[int]Value;
|
||||
m1: map[string]Value;
|
||||
m2: map[f32]Value;
|
||||
m: map[int]Value;
|
||||
m[123] = 345.0;
|
||||
x, ok := m[123];
|
||||
if ok {
|
||||
fmt.println(x);
|
||||
}
|
||||
|
||||
|
||||
// fm: map[128, int]f32;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user