summaryrefslogtreecommitdiff
path: root/test/scaladoc/resources/SI-6509.scala
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-10-11 10:49:03 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-10-11 10:49:03 -0700
commit553ee0118dbc052bed8c4580376b48cd9cb5d0f9 (patch)
tree4926c23ca47a334a5bba5863d90102ced446389c /test/scaladoc/resources/SI-6509.scala
parent90c7596c0736d56ff7b8d699bd958d28cb213bdf (diff)
parent2edf78f3a05112961ed6ad56452e9b5dc150fc3c (diff)
downloadscala-553ee0118dbc052bed8c4580376b48cd9cb5d0f9.tar.gz
scala-553ee0118dbc052bed8c4580376b48cd9cb5d0f9.tar.bz2
scala-553ee0118dbc052bed8c4580376b48cd9cb5d0f9.zip
Merge pull request #1491 from VladUreche/topic/scaladoc2
Scaladoc bugfixes for reflection
Diffstat (limited to 'test/scaladoc/resources/SI-6509.scala')
-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