aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-07-15 22:38:51 +0100
committergingerBill <bill@gingerbill.org>2019-07-15 22:38:51 +0100
commitc7a70be8240f150c159ab51f76ee776067d9a99b (patch)
treef45ec6c447d4a5d99ed9de3747eda8a258e8147d /examples
parent08c490d9ac7843227c6dab2ca21e51b747fc547d (diff)
Fix __get_map_key
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index 206fa4a2d..298af6e32 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -946,7 +946,12 @@ deferred_procedure_associations :: proc() {
}
main :: proc() {
- when true {
+ x: map[int]int;
+ x[123] = 123;
+ fmt.println(x);
+ fmt.println(x[123]);
+
+ when false {
general_stuff();
union_type();
parametric_polymorphism();