aboutsummaryrefslogtreecommitdiff
path: root/doc-tool
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-12-22 16:56:25 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-01-31 14:28:08 +0100
commit25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa (patch)
tree845cd59d6da70658f0c08e1aa107b03e3d8deb09 /doc-tool
parent4396eba6c6b1f5fd7fc61472bef9e946dffe6c8a (diff)
downloaddotty-25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa.tar.gz
dotty-25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa.tar.bz2
dotty-25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa.zip
Fix doc compilation of dotty itself
Diffstat (limited to 'doc-tool')
-rw-r--r--doc-tool/src/dotty/tools/dottydoc/model/factories.scala7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/model/factories.scala b/doc-tool/src/dotty/tools/dottydoc/model/factories.scala
index 804065d82..2976c2f48 100644
--- a/doc-tool/src/dotty/tools/dottydoc/model/factories.scala
+++ b/doc-tool/src/dotty/tools/dottydoc/model/factories.scala
@@ -162,7 +162,12 @@ object factories {
)
}, mt.isImplicit) :: paramLists(mt.resultType)
- case annot: AnnotatedType => paramLists(annot.tpe)
+ case mp: MethodParam =>
+ paramLists(mp.underlying)
+
+ case annot: AnnotatedType =>
+ paramLists(annot.tpe)
+
case (_: PolyParam | _: RefinedType | _: TypeRef | _: ThisType |
_: ExprType | _: OrType | _: AndType | _: HKApply | _: TermRef) =>
Nil // return types should not be in the paramlist