File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
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
5757scala> val x: List[Int] = "foo" :: List(1)
58581 | val x: List[Int] = "foo" :: List(1)
5959 | ^^^^^
60- | found: String($1$ )
60+ | found: String("foo" )
6161 | required: Int
6262 |
6363scala> { def f: Int = g; val x: Int = 1; def g: Int = 5; }
You can’t perform that action at this time.
0 commit comments