Skip to content

Commit 9cf5384

Browse files
committed
wip:mixins
1 parent 02ff21e commit 9cf5384

File tree

2 files changed

+167
-321
lines changed

2 files changed

+167
-321
lines changed

src/compiler/scala/tools/nsc/transform/Constructors.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,8 @@ abstract class Constructors extends Statics with Transform with ast.TreeDSL {
638638
// recurse on class definition, store in defBuf
639639
case _: ClassDef => defBuf += new ConstructorTransformer(unit).transform(stat)
640640

641+
case _: DefDef if inTrait && statSym.isAccessor => defBuf += deriveDefDef(dd)(_ => EmptyTree)
642+
641643
// methods (except primary constructor) go into template
642644
// (non-primary ctors --> auxConstructorBuf / regular defs --> defBuf)
643645
case _: DefDef if statSym.isPrimaryConstructor => ()

0 commit comments

Comments
 (0)