diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-20 19:40:51 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-20 19:40:51 +0100 |
| commit | 9a3b4167bb8495f9422ffa5cb242198fed3a315b (patch) | |
| tree | d5e1f4fe1ff66282cb67896c7c432a487b5a55df /code | |
| parent | 13bc6eeea4cc89b06bcfc3aaef7bfb85c1cb5b01 (diff) | |
Fix polymorphic element types usage; Empty `union` as opaque type
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 7 |
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); } |