File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -731,10 +731,10 @@ object desugar {
731
731
* ==> r.op(l) if op is right-associative
732
732
*/
733
733
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
+ }
738
738
def makeOp (fn : Tree , arg : Tree , selectPos : Position ) = {
739
739
val args : List [Tree ] = arg match {
740
740
case Parens (arg) => assignToNamedArg(arg) :: Nil
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ scala> class Foo() { def bar: Int = 1 }; val foo = new Foo(); foo.barr
57
57
scala> val x: List[Int] = "foo" :: List(1)
58
58
1 | val x: List[Int] = "foo" :: List(1)
59
59
| ^^^^^
60
- | found: String($1$ )
60
+ | found: String("foo" )
61
61
| required: Int
62
62
|
63
63
scala> { def f: Int = g; val x: Int = 1; def g: Int = 5; }
You can’t perform that action at this time.
0 commit comments