Fixed in https://github.com/scala/scala-lang/commit/2667a3a517c79af442b71ce8371e0542dfad556f