Skip to content

Commit

Permalink
Fix compilation after backport to LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Dec 3, 2024
1 parent 168fc78 commit 493cf40
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import dotty.tools.dotc.core.Types.*
import dotty.tools.dotc.core.Types.Type
import dotty.tools.dotc.interactive.Interactive
import dotty.tools.dotc.interactive.InteractiveDriver
import dotty.tools.dotc.typer.Applications.UnapplyArgs
import dotty.tools.dotc.typer.Applications.unapplyArgs
import dotty.tools.dotc.util.NoSourcePosition
import dotty.tools.dotc.util.SourceFile
import dotty.tools.dotc.util.Spans.Span
Expand Down Expand Up @@ -94,7 +94,7 @@ object InterCompletionType:
case UnApply(fun, _, pats) :: _ =>
val ind = pats.indexWhere(_.span.contains(span))
if ind < 0 then None
else Some(UnapplyArgs(fun.tpe.finalResultType, fun, pats, NoSourcePosition).argTypes(ind))
else unapplyArgs(fun.tpe.finalResultType, fun, pats, NoSourcePosition).lift(ind)
// f(@@)
case (app: Apply) :: rest =>
val param =
Expand Down

0 comments on commit 493cf40

Please sign in to comment.