We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bae75d commit d1cbc62Copy full SHA for d1cbc62
compiler/src/dotty/tools/dotc/inlines/PrepareInlineable.scala
@@ -54,7 +54,8 @@ object PrepareInlineable {
54
*/
55
abstract class MakeInlineableMap(val inlineSym: Symbol) extends TreeMap with Insert {
56
def accessorNameOf(name: TermName, site: Symbol)(using Context): TermName =
57
- InlineAccessorName(name).expandedName(site)
+ val accName = InlineAccessorName(name)
58
+ if site.isExtensibleClass then accName.expandedName(site) else accName
59
60
/** A definition needs an accessor if it is private, protected, or qualified private
61
* and it is not part of the tree that gets inlined. The latter test is implemented
0 commit comments