diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-12-22 16:56:25 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-01-31 14:28:08 +0100 |
commit | 25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa (patch) | |
tree | 845cd59d6da70658f0c08e1aa107b03e3d8deb09 /doc-tool/src/dotty/tools/dottydoc/model/factories.scala | |
parent | 4396eba6c6b1f5fd7fc61472bef9e946dffe6c8a (diff) | |
download | dotty-25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa.tar.gz dotty-25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa.tar.bz2 dotty-25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa.zip |
Fix doc compilation of dotty itself
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/model/factories.scala')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/model/factories.scala | 7 |
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 |