diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-17 16:16:23 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-17 16:16:23 +0200 |
| commit | e676e74efbbbf62887b9442326399eebccc4d108 (patch) | |
| tree | 04c51d56a20dd17bb5091895292079504c1dc13e /boot/type_check.cc | |
| parent | db528ae1fbec5219fa34e1b780590eef89e9618c (diff) | |
| download | elna-e676e74efbbbf62887b9442326399eebccc4d108.tar.gz | |
Handle base type constness
Diffstat (limited to 'boot/type_check.cc')
| -rw-r--r-- | boot/type_check.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boot/type_check.cc b/boot/type_check.cc index 3667007..b42792b 100644 --- a/boot/type_check.cc +++ b/boot/type_check.cc @@ -212,7 +212,8 @@ namespace elna::boot return true; } } - return !record->base.empty() && contains_constant_member(record->base); + return !record->base.empty() + && contains_constant_member(resolve_underlying_type(record->base)); } else if (auto array = referent.get<array_type>()) { @@ -230,7 +231,7 @@ namespace elna::boot } alias_path.push_back(alias->name); - if (auto another_alias = alias->reference.get<alias_type>()) + if (auto another_alias = alias->referent.get<alias_type>()) { return check_unresolved_symbol(another_alias, alias_path); } |
