diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-06 17:11:17 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-06 17:11:17 +0100 |
| commit | 50301557b2425fc0b4dd213ad03fb635cbd6e454 (patch) | |
| tree | bcb09c25f839099ac172529283bc7e4a147614d8 /code/demo.odin | |
| parent | fee504636f9cd7633217e1877ee1b99e555bba63 (diff) | |
Untyped `nil`
Diffstat (limited to 'code/demo.odin')
| -rw-r--r-- | code/demo.odin | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/code/demo.odin b/code/demo.odin index ff80f434d..0d0ed6735 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,9 +1,15 @@ #import "fmt.odin" -#import "utf8.odin" -#import "hash.odin" -#import "mem.odin" -#import "game.odin" + +A :: {2}f32{1, 2} +B :: {2}f32{3, 4} main :: proc() { - fmt.println("Hellope") + Fruit :: union { + A: int + B: f32 + C: struct { + x: int + } + } } + |