Skip to content

Commit 4a8ab90

Browse files
committed
Fix compilation errors after cherry-picks
1 parent 3bc8e26 commit 4a8ab90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2953,7 +2953,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
29532953
typedUnApply(cpy.Apply(tree)(op, l :: r :: Nil), pt)
29542954
else {
29552955
val app = typedApply(desugar.binop(l, op, r), pt)
2956-
if op.name.isRightAssocOperatorName && !ctx.mode.is(Mode.QuotedExprPattern) then
2956+
if op.name.isRightAssocOperatorName && !ctx.mode.is(Mode.QuotedPattern) then
29572957
val defs = new mutable.ListBuffer[Tree]
29582958
def lift(app: Tree): Tree = (app: @unchecked) match
29592959
case Apply(fn, args) =>

compiler/test/dotty/tools/repl/TabcompleteTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TabcompleteTests extends ReplTest {
1010

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

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

0 commit comments

Comments
 (0)