aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/transform/FullParameterization.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/transform/FullParameterization.scala b/src/dotty/tools/dotc/transform/FullParameterization.scala
index d402c2e7f..d650eecb7 100644
--- a/src/dotty/tools/dotc/transform/FullParameterization.scala
+++ b/src/dotty/tools/dotc/transform/FullParameterization.scala
@@ -116,8 +116,9 @@ trait FullParameterization {
info match {
case info @ PolyType(mtnames) =>
PolyType(mtnames ++ ctnames)(
- pt => (info.paramBounds ++ mappedClassBounds(pt))
- .mapConserve(_.subst(info, pt).bounds),
+ pt =>
+ (info.paramBounds.map(mapClassParams(_, pt).bounds) ++
+ mappedClassBounds(pt)).mapConserve(_.subst(info, pt).bounds),
pt => resultType(mapClassParams(_, pt)).subst(info, pt))
case _ =>
if (ctparams.isEmpty) resultType(identity)