This issue has been reported at Scala and is still open, https://issues.scala-lang.org/browse/SI-8518