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 4fa0c39 commit da73d98Copy full SHA for da73d98
compiler/src/dotty/tools/dotc/inlines/InlineReducer.scala
@@ -329,7 +329,7 @@ class InlineReducer(inliner: Inliner)(using Context):
329
val paramCls = paramType.classSymbol
330
if (paramCls.is(Case) && unapp.symbol.is(Synthetic) && scrut <:< paramType) {
331
val caseAccessors =
332
- if (paramCls.is(Scala2x)) paramCls.caseAccessors.filter(_.is(Method))
+ if (paramCls.is(Scala2x, butNot = Scala2Tasty)) paramCls.caseAccessors.filter(_.is(Method))
333
else paramCls.asClass.paramAccessors
334
val selectors =
335
for (accessor <- caseAccessors)
0 commit comments