Skip to content

Commit b43905e

Browse files
author
EnzeXing
committed
Removing original widen
1 parent 4799b75 commit b43905e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

compiler/src/dotty/tools/dotc/transform/init/Objects.scala

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -591,23 +591,6 @@ object Objects:
591591
case (RefSet(refs), b : ValueElement) => RefSet(refs + b)
592592
case (a : ValueElement, b : ValueElement) => RefSet(ListSet(a, b))
593593

594-
/* def widen(height: Int)(using Context): Value =
595-
if height == 0 then Cold
596-
else
597-
a match
598-
case Bottom => Bottom
599-
600-
case RefSet(refs) =>
601-
refs.map(ref => ref.widen(height)).join
602-
603-
case Fun(code, thisV, klass, env) =>
604-
Fun(code, thisV.widenThisV(height), klass, env.widen(height))
605-
606-
case ref : Ref =>
607-
ref.widenThisV(height)
608-
609-
case _ => a */
610-
611594
extension (values: Iterable[Value])
612595
def join: Value = if values.isEmpty then Bottom else values.reduce { (v1, v2) => v1.join(v2) }
613596

0 commit comments

Comments
 (0)