diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-02-24 22:56:34 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-02-24 22:56:34 +0000 |
| commit | 67ed8a9a4ab8fdcfc77036c827b7dfa98025bc8b (patch) | |
| tree | 08458a0213210863eab89a468f8ee119f48787f0 /code | |
| parent | 4cc4d604bcfb34a23272e8c467c16be2fc17d523 (diff) | |
Fix Tuple type info bug
Caused by not having type safe tagged unions :P (Silly C)
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/code/demo.odin b/code/demo.odin index 69d0763bb..c548a9430 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -6,7 +6,15 @@ #import "opengl.odin"; #import "os.odin"; +foo :: proc(x: int) -> f32 { + return 123; +} + main :: proc() { + + fmt.printf("%T\n", foo); + +when false { /* Version 0.1.1 @@ -57,6 +65,9 @@ main :: proc() { To come very Soon™: * Linux and OS X builds (unofficial ones do exist already) */ + { + + } { Fruit :: enum { @@ -145,4 +156,5 @@ main :: proc() { // align_of([vector 7]i32) != align_of([7]i32) // this may be the case } } +} |