summaryrefslogtreecommitdiff
path: root/test/scaladoc/resources/package-object-res.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/scaladoc/resources/package-object-res.scala')
-rw-r--r--test/scaladoc/resources/package-object-res.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/scaladoc/resources/package-object-res.scala b/test/scaladoc/resources/package-object-res.scala
new file mode 100644
index 0000000000..17d5c0a499
--- /dev/null
+++ b/test/scaladoc/resources/package-object-res.scala
@@ -0,0 +1,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!"
+}