Open
Description
Compiler version
3.4.0-RC2
Minimized code
// Test.scala
def test: Unit =
val sb = new StringBuilder
var key = ""
var map = Map.empty[String, String]
map += key -> sb.toString()
sbt> set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty
sbt> scala3-bootstrapped/scalac Test.scala
Output
-- [E008] Not Found Error: Test.scala:5:6 ------------------------------------
5 | map += key -> sb.toString()
| ^^^^^^
|value += is not a member of Map[String, String] - did you mean Map[String, String].!=? or perhaps Map[String, String].++ or Map[String, String].++ or Map[String, String].==?
Expectation
Should compile as it does when we use the Scala 2 compiled library.