mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-24 00:17:54 +00:00
Fix typeid comparison bug; Add extra messages for pointer address errors
This commit is contained in:
+11
-1
@@ -1350,7 +1350,17 @@ soa_struct_layout :: proc() {
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
when true {
|
||||
id: typeid;
|
||||
id = typeid_of(int);
|
||||
|
||||
if id == bool {
|
||||
fmt.println("HERE1");
|
||||
}
|
||||
fmt.println("HERE2");
|
||||
|
||||
|
||||
|
||||
when false {
|
||||
extra_general_stuff();
|
||||
union_type();
|
||||
parametric_polymorphism();
|
||||
|
||||
Reference in New Issue
Block a user