Skip to content

Commit d140517

Browse files
authored
Merge pull request #13185 from BarkingBad/scaladoc/intrinsic-types-package
Fix intrinsic types documentation when there is no scala package on files to document path
2 parents 0a9b48f + b866c33 commit d140517

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

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

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

0 commit comments

Comments
 (0)