Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

scala

I wanted to jump into the source of Any to see how some methods had been implemented, but I see it is not included in the scala-library-src, and neither is AnyRef (value types and Nothing are, however). I'm curious, how and where are Scala object base types implemented?

like image 411
MilesHampson Avatar asked Oct 22 '12 11:10

MilesHampson


1 Answers

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

like image 151
stew Avatar answered Sep 30 '22 11:09

stew