os.Errno -> os.Error

This commit is contained in:
gingerBill
2024-08-04 11:47:23 +01:00
parent 160048eaee
commit 1d75a612d5
9 changed files with 15 additions and 14 deletions

View File

@@ -4463,6 +4463,7 @@ gb_internal void convert_to_typed(CheckerContext *c, Operand *operand, Type *tar
// as a kind of transition period
if (operand->mode == Addressing_Constant &&
target_type->kind == Type_Named &&
(c->pkg == nullptr || c->pkg->name != "os") &&
target_type->Named.name == "Error") {
Entity *e = target_type->Named.type_name;
if (e->pkg && e->pkg->name == "os") {