Skip to content

Commit

Permalink
fix: rm unnecessary changes
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Oct 11, 2023
1 parent 3018a16 commit 8039e32
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kclvm/sema/src/resolver/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl<'ctx> Resolver<'ctx> {
}
}

pub fn init_scope_with_assign_stmt(
fn init_scope_with_assign_stmt(
&mut self,
assign_stmt: &'ctx ast::AssignStmt,
unique_check: bool,
Expand All @@ -227,9 +227,6 @@ impl<'ctx> Resolver<'ctx> {
}
let name = &target.node.names[0].node;
let (start, end) = target.get_span_pos();
if !unique_check && self.contains_object(name) {
continue;
}
if self.contains_object(name) && !is_private_field(name) && unique_check {
self.handler.add_error(
ErrorKind::ImmutableError,
Expand Down

0 comments on commit 8039e32

Please sign in to comment.