Is scala.Singleton pure compiler fiction?
问题 The Scala Language Specification says under §3.2.1: A stable type is either a singleton type or a type which is declared to be a subtype of trait scala.Singleton. I couldn't find scala.Singleton neither in the sources, in ScalaDoc nor in the binary jar file. Trying on the REPL results in: scala> class Foo extends Singleton <console>:9: error: illegal inheritance from final trait Singleton class Foo extends Singleton ^ <console>:9: error: illegal inheritance; superclass Any is not a subclass