We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390691e commit c6ea1a2Copy full SHA for c6ea1a2
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -144,7 +144,9 @@ class Semantic {
144
case (RefSet(refs1), RefSet(refs2)) => RefSet(refs1 ++ refs2)
145
146
extension (values: Seq[Value])
147
- def join: Value = values.reduce { (v1, v2) => v1.join(v2) }
+ def join: Value =
148
+ if values.isEmpty then Hot
149
+ else values.reduce { (v1, v2) => v1.join(v2) }
150
151
extension (value: Value)
152
def select(field: Symbol, source: Tree)(using Context, Trace): Result =
0 commit comments