From 24aec3f28cfa047c14d814a7f62a28f58b662799 Mon Sep 17 00:00:00 2001 From: ertugrulfarukpiskin Date: Sat, 21 Jun 2025 12:22:01 +0300 Subject: [PATCH] Assertion Fails on import Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICGUIM Description: Assert fail on scoped import Signed-off-by: ertugrulfarukpiskin --- ets2panda/varbinder/scope.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ets2panda/varbinder/scope.cpp b/ets2panda/varbinder/scope.cpp index 4625e5f011..f6888b5055 100644 --- a/ets2panda/varbinder/scope.cpp +++ b/ets2panda/varbinder/scope.cpp @@ -869,6 +869,10 @@ Variable *ClassScope::FindLocal(const util::StringView &name, ResolveBindingOpti void ClassScope::SetBindingProps(Decl *newDecl, BindingProps *props, bool isStatic) { + if (newDecl->IsImportDecl()) { + return; + } + switch (newDecl->Type()) { case DeclType::CONST: [[fallthrough]]; -- Gitee