Skip to content

Commit a8164c4

Browse files
committed
Generate type entries for type alias lhs
1 parent cf0cfd3 commit a8164c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/ClassLikeSupport.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ trait ClassLikeSupport:
128128
if typ.isInstanceOf[Inkuire.Type] then {
129129
val t = typ.asInstanceOf[Inkuire.Type]
130130
val rhsTypeLike = typeDef.rhs.asInkuire(variableNames)
131-
Inkuire.db = Inkuire.db.copy(typeAliases = Inkuire.db.typeAliases.updated(t.itid.get, rhsTypeLike))
131+
Inkuire.db = Inkuire.db.copy(
132+
typeAliases = Inkuire.db.typeAliases.updated(t.itid.get, rhsTypeLike),
133+
types = Inkuire.db.types.updated(t.itid.get, (t, Seq.empty))
134+
)
132135
}
133136
if typeDef.rhs.symbol.flags.is(Flags.JavaDefined) then
134137
val typJava = typeDef.rhs.asInkuire(variableNames)

0 commit comments

Comments
 (0)