diff options
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/Applications.scala | 2 | ||||
-rw-r--r-- | tests/repl/imports.check | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/Applications.scala b/compiler/src/dotty/tools/dotc/typer/Applications.scala index 0ed6ed6b4..6c5dac5d4 100644 --- a/compiler/src/dotty/tools/dotc/typer/Applications.scala +++ b/compiler/src/dotty/tools/dotc/typer/Applications.scala @@ -683,7 +683,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic => * * { val xs = es; e' = e' + args } */ - def typedOpAssign: Tree = track("typedOpAssign") { + def typedOpAssign(implicit ctx: Context): Tree = track("typedOpAssign") { val Apply(Select(lhs, name), rhss) = tree val lhs1 = typedExpr(lhs) val liftedDefs = new mutable.ListBuffer[Tree] diff --git a/tests/repl/imports.check b/tests/repl/imports.check index 5260589a9..345fac142 100644 --- a/tests/repl/imports.check +++ b/tests/repl/imports.check @@ -11,7 +11,7 @@ scala> buf += xs 11 |buf += xs | ^^ | found: scala.collection.immutable.List[Int](o.xs) - | required: String + | required: Int | scala> buf ++= xs val res1: scala.collection.mutable.ListBuffer[Int] = ListBuffer(1, 2, 3) |