Closed
Description
The semantic name PR broke compilation of scalatest, see #2233, the stacktrace is at https://gist.github.com/smarter/2b03b8fc57f7b8e4a027affe39b4426b and fails in LambdaLift. I'm not sure why, but I've noticed that LambdaLift defines the following method:
private def newName(sym: Symbol)(implicit ctx: Context): Name =
if (sym.isAnonymousFunction && sym.owner.is(Method, butNot = Label))
(sym.name ++ NJ ++ sym.owner.name).freshened
else sym.name.freshened
Which seems like it should be creating a semantic qualified name instead.