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 bf4d3b0 commit f9c2e54Copy full SHA for f9c2e54
compiler/src/dotty/tools/dotc/typer/Inliner.scala
@@ -53,6 +53,7 @@ object Inliner {
53
* by excluding all symbols properly contained in the inlined method.
54
*/
55
def needsAccessor(sym: Symbol)(implicit ctx: Context) =
56
+ sym.isTerm &&
57
(sym.is(AccessFlags) || sym.privateWithin.exists) &&
58
!sym.owner.isContainedIn(inlineMethod)
59
0 commit comments