Skip to content

Commit 5c0a409

Browse files
committed
Fix intrinsic types documentation when there is no scala package on files to document path
1 parent 2260aa2 commit 5c0a409

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ case class ScaladocTastyInspector()(using ctx: DocContext) extends DocTastyInspe
143143
}
144144
}
145145
topLevels ++= intrinsicClassDefs
146+
val scalaPckg = defn.ScalaPackageVal.asInstanceOf[parser.qctx.reflect.Symbol]
147+
val name = scalaPckg.fullName
148+
given parser.qctx.type = parser.qctx
149+
topLevels += "scala" -> Member(name, scalaPckg.dri, Kind.Package)
146150
topLevels += mergeAnyRefAliasAndObject(parser)
147151

148152
def result(): (List[Member], Option[Comment]) =

0 commit comments

Comments
 (0)