blob: 17d5c0a4991950e6c69feb7e617ee52502e27032 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/** This package have 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!"
}
|