You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- They make debugging harder since it's not always clear what
`Symbols$$anon$3` refes to
- If they take an outer reference as parameter, we currently generate
inefficient code for them due to scala#4502
I tried reproducing the above, and can't seem to get the same output with current master. Given that the issue is almost 2 years old, I was wondering is this still an issue? If yes, which reproducer would trigger this?
Consider:
The anonymous class generated by Dotty looks like:
Whereas with scalac we get:
This seems to be implemented by removing outer accessors that are never called in the constructors phase: https://github.com/scala/scala/blob/a52482c7236a782adedf7523301a97659e4d720f/src/compiler/scala/tools/nsc/transform/Constructors.scala#L114-L117
The text was updated successfully, but these errors were encountered: