From 67ed8a9a4ab8fdcfc77036c827b7dfa98025bc8b Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Fri, 24 Feb 2017 22:56:34 +0000 Subject: Fix Tuple type info bug Caused by not having type safe tagged unions :P (Silly C) --- code/demo.odin | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'code') 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 } } +} -- cgit v1.2.3