From b7dd49c1d5832ac7d82edba27316884ab53e614c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 10 Jul 2026 17:06:21 +0200 Subject: Report if the base type of a record is not a record --- boot/symbol.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'boot/symbol.cc') diff --git a/boot/symbol.cc b/boot/symbol.cc index d01eb8e..512cf04 100644 --- a/boot/symbol.cc +++ b/boot/symbol.cc @@ -429,4 +429,21 @@ namespace elna::boot { this->imports.push_front(bag.symbols); } + + type inner_aliased_type(std::shared_ptr alias) + { + return inner_aliased_type(alias->reference); + } + + type inner_aliased_type(type alias) + { + if (auto aliased = alias.get()) + { + return inner_aliased_type(aliased); + } + else + { + return alias; + } + } } -- cgit v1.2.3