summaryrefslogtreecommitdiff
path: root/test/scaladoc/resources/package-object-res.scala
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2012-05-03 23:44:48 +0900
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>2012-05-03 23:44:48 +0900
commit44797916bd4437729e1f13333eee7a2a2cb8ca58 (patch)
tree123895606a30cc6dffa63b3bfc922be4ea17a96d /test/scaladoc/resources/package-object-res.scala
parent6300c3033e7b852c6cbef332af6085aac6150a70 (diff)
downloadscala-44797916bd4437729e1f13333eee7a2a2cb8ca58.tar.gz
scala-44797916bd4437729e1f13333eee7a2a2cb8ca58.tar.bz2
scala-44797916bd4437729e1f13333eee7a2a2cb8ca58.zip
Fix SI-4976 partially
If a package have a package object, generate the package's "linearization" from the object.
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!"
+}