Merge pull request #5970 from blob1807/master

Fix `is_pointer_internally` not handling Named Types.
This commit is contained in:
gingerBill
2025-11-28 09:24:43 +00:00
committed by GitHub

View File

@@ -328,7 +328,7 @@ is_soa_pointer :: proc(info: ^Type_Info) -> bool {
@(require_results)
is_pointer_internally :: proc(info: ^Type_Info) -> bool {
if info == nil { return false }
#partial switch v in info.variant {
#partial switch v in type_info_base(info).variant {
case Type_Info_Pointer, Type_Info_Multi_Pointer,
Type_Info_Procedure:
return true