Skip to content

Commit

Permalink
Update const_func.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Sep 14, 2024
1 parent 60f0388 commit 4014b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/erg_compiler/context/initialize/const_func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ pub(crate) fn list_union(mut args: ValueArgs, ctx: &Context) -> EvalValueResult<
.flat_map(|t| ctx.convert_value_into_type(t.clone()))
.collect::<Vec<_>>();
// args must already be evaluated
if slf.iter().any(|t| t.has_proj() || t.has_proj_call()) {
if slf.iter().any(|t| t.is_proj() || t.is_proj_call()) {
return Ok(TyParam::t(Type::Obj));
}
let union = slf
Expand Down

0 comments on commit 4014b7c

Please sign in to comment.