aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Applications.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/typer/Applications.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Applications.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala
index 87bed8895..2e945683b 100644
--- a/src/dotty/tools/dotc/typer/Applications.scala
+++ b/src/dotty/tools/dotc/typer/Applications.scala
@@ -1102,8 +1102,8 @@ trait Applications extends Compatibility { self: Typer =>
}
val clss = numericClasses(ts, Set())
if (clss.size > 1) {
- val lub = defn.ScalaNumericValueClassList.find(lubCls =>
- clss.forall(defn.isValueSubClass(_, lubCls))).get.typeRef
+ val lub = defn.ScalaNumericValueTypeList.find(lubTpe =>
+ clss.forall(cls => defn.isValueSubType(cls.typeRef, lubTpe))).get
ts.mapConserve(adapt(_, lub))
}
else ts