From 81370291c039593a9886c7b3f776ca55a2858f0d Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 25 Aug 2026 23:41:18 +0200 Subject: Reject circular imports --- boot/symbol.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot/symbol.cc') diff --git a/boot/symbol.cc b/boot/symbol.cc index b32782e..fcafae4 100644 --- a/boot/symbol.cc +++ b/boot/symbol.cc @@ -409,9 +409,9 @@ namespace elna::boot return unresolved_declaration; } - void symbol_bag::add_import(const symbol_bag& bag) + void symbol_bag::add_import(const std::shared_ptr& symbols) { - this->imports.push_front(bag.exported_symbols()); + this->imports.push_front(symbols); } bool symbol_bag::is_global() const -- cgit v1.2.3