diff options
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 |