mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Fix Tuple type info bug
Caused by not having type safe tagged unions :P (Silly C)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user