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 02ff21e commit 9cf5384Copy full SHA for 9cf5384
src/compiler/scala/tools/nsc/transform/Constructors.scala
@@ -638,6 +638,8 @@ abstract class Constructors extends Statics with Transform with ast.TreeDSL {
638
// recurse on class definition, store in defBuf
639
case _: ClassDef => defBuf += new ConstructorTransformer(unit).transform(stat)
640
641
+ case _: DefDef if inTrait && statSym.isAccessor => defBuf += deriveDefDef(dd)(_ => EmptyTree)
642
+
643
// methods (except primary constructor) go into template
644
// (non-primary ctors --> auxConstructorBuf / regular defs --> defBuf)
645
case _: DefDef if statSym.isPrimaryConstructor => ()
0 commit comments