mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
Add bit_field as a keyword
This commit is contained in:
@@ -106,6 +106,7 @@ TOKEN_KIND(Token__KeywordBegin, ""), \
|
||||
TOKEN_KIND(Token_union, "union"), \
|
||||
TOKEN_KIND(Token_enum, "enum"), \
|
||||
TOKEN_KIND(Token_bit_set, "bit_set"), \
|
||||
TOKEN_KIND(Token_bit_field, "bit_field"), \
|
||||
TOKEN_KIND(Token_map, "map"), \
|
||||
TOKEN_KIND(Token_dynamic, "dynamic"), \
|
||||
TOKEN_KIND(Token_auto_cast, "auto_cast"), \
|
||||
|
||||
+4
-2
@@ -4114,8 +4114,10 @@ gb_internal isize check_is_assignable_to_using_subtype(Type *src, Type *dst, isi
|
||||
}
|
||||
if (allow_polymorphic && dst_is_polymorphic) {
|
||||
Type *fb = base_type(type_deref(f->type));
|
||||
if (fb->kind == Type_Struct && fb->Struct.polymorphic_parent == dst) {
|
||||
return true;
|
||||
if (fb->kind == Type_Struct) {
|
||||
if (fb->Struct.polymorphic_parent == dst) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user