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 ffd3393 commit 0e016e1Copy full SHA for 0e016e1
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2037,7 +2037,7 @@ class Typer extends Namer
2037
ctx.outer.outersIterator.takeWhile(!_.owner.is(Method))
2038
.filter(ctx => ctx.owner.isClass && ctx.owner.typeParams.nonEmpty)
2039
.toList.reverse
2040
- .map(ctx => rhsCtx.gadt.addToConstraint(ctx.owner.typeParams))
+ .foreach(ctx => rhsCtx.gadt.addToConstraint(ctx.owner.typeParams))
2041
2042
if tparamss.nonEmpty then
2043
rhsCtx.setFreshGADTBounds
0 commit comments