diff options
| author | gingerBill <bill@gingerbill.org> | 2019-11-03 19:49:21 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-11-03 19:49:21 +0000 |
| commit | c1176c2bcb919118e916a0ef2292ddc0f89f5bf7 (patch) | |
| tree | a29bdc0b59be064b3f4a9965143458af07118c35 /examples | |
| parent | 57853fe1b118970e1fc7149a7f030f4152e7157d (diff) | |
Fix typeid comparison bug; Add extra messages for pointer address errors
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 8dc5340c9..168efb434 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -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(); |