Skip to content

Commit 28ca0be

Browse files
committed
doc-tool: Add missing handling of LazyRef
The test arrayAndImmutableHasDocumentation started to fail after the stdlib whitelist was expanded in the previous commits, this was the cause.
1 parent 32bd66a commit 28ca0be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc-tool/src/dotty/tools/dottydoc/model/factories.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ object factories {
120120

121121
case ref @ RefinedType(parent, rn, info) =>
122122
expandTpe(parent) //FIXME: will be a refined HK, aka class Foo[X] { def bar: List[X] } or similar
123+
124+
case tp: LazyRef =>
125+
expandTpe(tp.ref)
123126
}
124127

125128
expandTpe(t)
@@ -175,9 +178,7 @@ object factories {
175178
case annot: AnnotatedType =>
176179
paramLists(annot.tpe)
177180

178-
case (_: TypeParamRef | _: RefinedType | _: TypeRef | _: ThisType |
179-
_: ExprType | _: OrType | _: AndType | _: AppliedType |
180-
_: TermRef | _: ConstantType) =>
181+
case _ =>
181182
Nil // return types should not be in the paramlist
182183
}
183184

0 commit comments

Comments
 (0)