aboutsummaryrefslogtreecommitdiff
path: root/code/demo.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-20 19:40:51 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-20 19:40:51 +0100
commit9a3b4167bb8495f9422ffa5cb242198fed3a315b (patch)
treed5e1f4fe1ff66282cb67896c7c432a487b5a55df /code/demo.odin
parent13bc6eeea4cc89b06bcfc3aaef7bfb85c1cb5b01 (diff)
Fix polymorphic element types usage; Empty `union` as opaque type
Diffstat (limited to 'code/demo.odin')
-rw-r--r--code/demo.odin7
1 files changed, 6 insertions, 1 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 4d87bbfec..912168306 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -1,6 +1,11 @@
import "fmt.odin";
+import "strconv.odin";
+
+Opaque :: union{};
main :: proc() {
- fmt.println("Hellope!");
+ buf := make([]u8, 0, 10);
+ s := strconv.append_bool(buf, true);
+ fmt.println(s);
}