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 9e7cce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/erg_compiler/context/initialize/const_func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,9 @@ 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
.iter()
.fold(Type::Never, |union, t| ctx.union(&union, t));
Expand Down

0 comments on commit 9e7cce1

Please sign in to comment.