Skip to content

Commit 493cf40

Browse files
committed
Fix compilation after backport to LTS
1 parent 168fc78 commit 493cf40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

presentation-compiler/src/main/dotty/tools/pc/InferExpectedType.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import dotty.tools.dotc.core.Types.*
1111
import dotty.tools.dotc.core.Types.Type
1212
import dotty.tools.dotc.interactive.Interactive
1313
import dotty.tools.dotc.interactive.InteractiveDriver
14-
import dotty.tools.dotc.typer.Applications.UnapplyArgs
14+
import dotty.tools.dotc.typer.Applications.unapplyArgs
1515
import dotty.tools.dotc.util.NoSourcePosition
1616
import dotty.tools.dotc.util.SourceFile
1717
import dotty.tools.dotc.util.Spans.Span
@@ -94,7 +94,7 @@ object InterCompletionType:
9494
case UnApply(fun, _, pats) :: _ =>
9595
val ind = pats.indexWhere(_.span.contains(span))
9696
if ind < 0 then None
97-
else Some(UnapplyArgs(fun.tpe.finalResultType, fun, pats, NoSourcePosition).argTypes(ind))
97+
else unapplyArgs(fun.tpe.finalResultType, fun, pats, NoSourcePosition).lift(ind)
9898
// f(@@)
9999
case (app: Apply) :: rest =>
100100
val param =

0 commit comments

Comments
 (0)