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 b70ade5 commit 84932efCopy full SHA for 84932ef
compiler/src/dotty/tools/dotc/typer/PrepareInlineable.scala
@@ -53,7 +53,8 @@ object PrepareInlineable {
53
*/
54
abstract class MakeInlineableMap(val inlineSym: Symbol) extends TreeMap with Insert {
55
def accessorNameOf(name: TermName, site: Symbol)(using Context): TermName =
56
- InlineAccessorName(name).expandedName(site)
+ val accName = InlineAccessorName(name)
57
+ if site.isExtensibleClass then accName.expandedName(site) else accName
58
59
/** A definition needs an accessor if it is private, protected, or qualified private
60
* and it is not part of the tree that gets inlined. The latter test is implemented
0 commit comments