diff --git a/kclvm/sema/src/advanced_resolver/node.rs b/kclvm/sema/src/advanced_resolver/node.rs index 0c46d15e7..08eaf0526 100644 --- a/kclvm/sema/src/advanced_resolver/node.rs +++ b/kclvm/sema/src/advanced_resolver/node.rs @@ -1279,10 +1279,7 @@ impl<'ctx> AdvancedResolver<'ctx> { .borrow() .get(&self.ctx.get_node_key(&kw.id)) .map(|ty| ty.clone()); - if with_hint { - value.hint = Some(SymbolHint::VarHint(kw_name.clone())); - params.retain(|param| param.name != kw_name); - } + params.retain(|param| param.name != kw_name); value.sema_info = SymbolSemanticInfo { ty, doc: None }; } }