Skip to content

Commit 4356333

Browse files
committed
subst new ctx in funproto
1 parent eb160eb commit 4356333

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
@@ -4367,7 +4367,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
43674367
tp.derivedFunProto(resultType = tp.resultType(using newCtx)).withContext(newCtx)
43684368
)
43694369
case tp => mapOver(tp)
4370-
val pt1 = substCtxMap(pt).deepenProtoTrans(using newCtx)
4370+
val pt1 = substCtxMap(pt.deepenProtoTrans(using newCtx))
43714371
try {
43724372
isFullyDefined(pt1, ForceDegree.none, ifProto = true)(using newCtx)
43734373
} catch {

0 commit comments

Comments
 (0)