Skip to content

Commit 35de04d

Browse files
committed
Fix repl test
1 parent c58b938 commit 35de04d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,10 +731,10 @@ object desugar {
731731
* ==> r.op(l) if op is right-associative
732732
*/
733733
def binop(left: Tree, op: Ident, right: Tree)(implicit ctx: Context): Apply = {
734-
def assignToNamedArg(arg: Tree) = arg match {
735-
case Assign(Ident(name), rhs) => cpy.NamedArg(arg)(name, rhs)
736-
case _ => arg
737-
}
734+
def assignToNamedArg(arg: Tree) = arg match {
735+
case Assign(Ident(name), rhs) => cpy.NamedArg(arg)(name, rhs)
736+
case _ => arg
737+
}
738738
def makeOp(fn: Tree, arg: Tree, selectPos: Position) = {
739739
val args: List[Tree] = arg match {
740740
case Parens(arg) => assignToNamedArg(arg) :: Nil

compiler/test-resources/repl/errmsgs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ scala> class Foo() { def bar: Int = 1 }; val foo = new Foo(); foo.barr
5757
scala> val x: List[Int] = "foo" :: List(1)
5858
1 | val x: List[Int] = "foo" :: List(1)
5959
| ^^^^^
60-
| found: String($1$)
60+
| found: String("foo")
6161
| required: Int
6262
|
6363
scala> { def f: Int = g; val x: Int = 1; def g: Int = 5; }

0 commit comments

Comments
 (0)