1 2 3 4 5 6 7 8 9 10 11
abstract class FileOps { def withLock[R](start: Long = 0): Option[R] } trait DefaultFileOps { self: DefaultPath => override def withLock[R](start: Long = 5): Option[R] = None } class DefaultPath extends FileOps with DefaultFileOps { }