blob: f1f714dd1f6165cef0c45c01c9bc62cf4e850690 (
plain) (
tree)
|
|
/** This package has A and B.
*/
package test {
trait A { def hi = "hello" }
trait B { def bye = "bye!" }
}
/** This package object extends A and B.
*/
package object test extends A with B {
override def hi = "good morning!"
override def bye = "good bye!"
protected def thank = "thank you!"
}
|