Skip to content

Commit 0e016e1

Browse files
Ang9876allanrenucci
andcommitted
Update compiler/src/dotty/tools/dotc/typer/Typer.scala
Co-authored-by: Allan Renucci <[email protected]>
1 parent ffd3393 commit 0e016e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@ class Typer extends Namer
20372037
ctx.outer.outersIterator.takeWhile(!_.owner.is(Method))
20382038
.filter(ctx => ctx.owner.isClass && ctx.owner.typeParams.nonEmpty)
20392039
.toList.reverse
2040-
.map(ctx => rhsCtx.gadt.addToConstraint(ctx.owner.typeParams))
2040+
.foreach(ctx => rhsCtx.gadt.addToConstraint(ctx.owner.typeParams))
20412041

20422042
if tparamss.nonEmpty then
20432043
rhsCtx.setFreshGADTBounds

0 commit comments

Comments
 (0)