summaryrefslogtreecommitdiff
path: root/test/scaladoc/resources/links.scala
diff options
context:
space:
mode:
authorVlad Ureche <vlad.ureche@gmail.com>2012-10-08 15:41:20 +0200
committerVlad Ureche <vlad.ureche@gmail.com>2012-10-11 17:47:46 +0200
commitc6df7ddd0657ace307eaf6d6bf436cbb24e93df4 (patch)
tree6154cc6e590372aa5d9c7e91b4f2e5898b553a48 /test/scaladoc/resources/links.scala
parent90c7596c0736d56ff7b8d699bd958d28cb213bdf (diff)
downloadscala-c6df7ddd0657ace307eaf6d6bf436cbb24e93df4.tar.gz
scala-c6df7ddd0657ace307eaf6d6bf436cbb24e93df4.tar.bz2
scala-c6df7ddd0657ace307eaf6d6bf436cbb24e93df4.zip
SI-6487 Scaladoc can link to inner classes
Diffstat (limited to 'test/scaladoc/resources/links.scala')
-rw-r--r--test/scaladoc/resources/links.scala11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/scaladoc/resources/links.scala b/test/scaladoc/resources/links.scala
index 09a52a4334..0986b4ea90 100644
--- a/test/scaladoc/resources/links.scala
+++ b/test/scaladoc/resources/links.scala
@@ -3,6 +3,7 @@
// SI-4497 "Links in ScalaDoc - Spec and implementation unsufficient"
// SI-4224 "Wiki-links should support method targets"
// SI-3695 "support non-fully-qualified type links in scaladoc comments"
+// SI-6487 "Scaladoc can't link to inner classes"
package scala.test.scaladoc.links {
import language.higherKinds
class C
@@ -54,9 +55,17 @@ package scala.test.scaladoc.links {
* - [[localMethod object TEST -> localMethod]] (should use the current template to resolve link instead of inTpl, that's the package)
* - [[#localMethod object TEST -> localMethod]] (should exercise Java-style links to empty members)
* - [[ImOutside class ImOutside (check correct lookup in EmptyPackage)]]
+ * - [[ImOutside.Inner#foo class ImOutside#class Inner#method foo (check correct lookup in EmptyPackage)]]
+ * - [[ImOutside.T#foo class ImOutside#type T#method foo (check correct interaction between @template and links)]]
*/
object TEST {
def localMethod = 3
}
}
-class ImOutside \ No newline at end of file
+trait ImOutside {
+ /** @template */
+ type T <: Inner
+ class Inner {
+ def foo: Any
+ }
+}