summaryrefslogtreecommitdiff
path: root/test/scaladoc/resources
diff options
context:
space:
mode:
authorVlad Ureche <vlad.ureche@gmail.com>2012-10-11 03:16:17 +0200
committerVlad Ureche <vlad.ureche@gmail.com>2012-10-11 17:48:05 +0200
commit2edf78f3a05112961ed6ad56452e9b5dc150fc3c (patch)
tree4926c23ca47a334a5bba5863d90102ced446389c /test/scaladoc/resources
parent2280b8e3d5472be2df69bb0531486c25cf10edc4 (diff)
downloadscala-2edf78f3a05112961ed6ad56452e9b5dc150fc3c.tar.gz
scala-2edf78f3a05112961ed6ad56452e9b5dc150fc3c.tar.bz2
scala-2edf78f3a05112961ed6ad56452e9b5dc150fc3c.zip
SI-6509 Correct @template owners
Diffstat (limited to 'test/scaladoc/resources')
-rw-r--r--test/scaladoc/resources/SI-6509.scala24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/scaladoc/resources/SI-6509.scala b/test/scaladoc/resources/SI-6509.scala
new file mode 100644
index 0000000000..540ba243bd
--- /dev/null
+++ b/test/scaladoc/resources/SI-6509.scala
@@ -0,0 +1,24 @@
+package test.scaladoc.template.owners
+
+trait X {
+ /** @template */
+ type Symbol >: Null <: SymbolApi
+
+ /** @template */
+ type TypeSymbol >: Null <: Symbol with TypeSymbolApi
+
+ /** @template */
+ type TermSymbol >: Null <: Symbol with TermSymbolApi
+
+ /** @template */
+ type MethodSymbol >: Null <: TermSymbol with MethodSymbolApi
+
+ trait SymbolApi { this: Symbol => def x: Int}
+ trait TermSymbolApi extends SymbolApi { this: TermSymbol => def y: Int}
+ trait TypeSymbolApi extends SymbolApi { this: TypeSymbol => def z: Int}
+ trait MethodSymbolApi extends TermSymbolApi { this: MethodSymbol => def t: Int }
+}
+
+trait Y extends X
+trait Z extends Y
+trait T extends Z