Fix old_demos; Fix when bug; Fix enum .names

This commit is contained in:
Ginger Bill committed 2017-09-29 21:11:16 +01:00
1 parent 793bc8c585
commit 11614c2649
13 files changed
+285 -286

No files matched your search

+3
View File
@@ -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)) {