aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-08-09 22:52:19 +0100
committergingerBill <bill@gingerbill.org>2019-08-09 22:52:19 +0100
commit2d26278a658211a9ce6cf6c9d1a8be16ba0e23cb (patch)
treec478ce9fcd36fd3ab1638ed3d3add83efb445648 /examples
parent27a3c5449ad8b09e54c70a494170fed8157eb6c3 (diff)
Make structs with the same fields but with different tags distinct types
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index 21f889746..e07eea7c7 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -955,7 +955,6 @@ struct_field_tags :: proc() {
z: bool, // no tag
}
- f: Foo;
ti := runtime.type_info_base(type_info_of(Foo));
s := ti.variant.(runtime.Type_Info_Struct);
fmt.println("Foo :: struct {");