mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-13 22:15:36 -04:00
Fix old_demos; Fix when bug; Fix enum .names
This commit is contained in:
1 parent
793bc8c585
commit
11614c2649
13 files changed
+285
-286
No files matched your search
@@ -4823,6 +4823,9 @@ Entity *check_selector(Checker *c, Operand *operand, AstNode *node, Type *type_h
|
||||
if (entity != nullptr && (entity->flags&EntityFlag_TypeField)) {
|
||||
add_type_info_type(c, operand->type);
|
||||
}
|
||||
if (is_type_enum(operand->type)) {
|
||||
add_type_info_type(c, operand->type);
|
||||
}
|
||||
}
|
||||
if (entity == nullptr && selector->kind == AstNode_BasicLit) {
|
||||
if (is_type_struct(operand->type) || is_type_tuple(operand->type)) {
|
||||
|
||||
Reference in new issue
Block a user