Skip to content

How to document the API of compiler intrinsic definitions #10899

Closed
@bishabosha

Description

@bishabosha

there are several standard library public definitions that do not appear in http://dotty.epfl.ch/api/index.html because they are generated on the fly by the compiler and so do not have a definition in tasty files

Magic in Scala 2/3

the following appear in https://www.scala-lang.org/api/2.13.4/index.html:

  • scala.Nothing
  • scala.AnyVal
  • scala.Any
  • scala.Singleton
  • scala.Null

Magic in Scala 3

  • scala.AnyKind
  • scala.Matchable
  • scala.&
  • scala.|

Miscellaneous

  • root package (Edit: yes I see now that the root is just the API page but just not labelled as root)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions