Skip to content

Commit

Permalink
Fix compilation errors after cherry-picks
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Jul 3, 2024
1 parent c671cac commit 7971a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2953,7 +2953,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
typedUnApply(cpy.Apply(tree)(op, l :: r :: Nil), pt)
else {
val app = typedApply(desugar.binop(l, op, r), pt)
if op.name.isRightAssocOperatorName && !ctx.mode.is(Mode.QuotedExprPattern) then
if op.name.isRightAssocOperatorName && !ctx.mode.is(Mode.QuotedPattern) then
val defs = new mutable.ListBuffer[Tree]
def lift(app: Tree): Tree = (app: @unchecked) match
case Apply(fn, args) =>
Expand Down
2 changes: 1 addition & 1 deletion compiler/test/dotty/tools/repl/TabcompleteTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TabcompleteTests extends ReplTest {

/** Returns the `(<instance completions>, <companion completions>)`*/
private def tabComplete(src: String)(implicit state: State): List[String] =
completions(src.length, src, state).map(_.value).sorted
completions(src.length, src, state).map(_.label).sorted.distinct

@Test def tabCompleteList = initially {
val comp = tabComplete("List.r")
Expand Down

0 comments on commit 7971a00

Please sign in to comment.