Where can I find the definition of scala.Any and scala.AnyRef?

I wanted to go to the Any source to see how some methods were implemented, but I see that it is not included in scala -library-src, and none of them are AnyRef (value types and Nothing, however). I am curious how and where Scala object types are implemented?

+4
source share
1 answer

/src/library-aux/scala/Any.scala and /src/library-aux/scala/AnyRef.scala contain trait Any and trait AnyRef .

+5
source

All Articles