Reference types (allowed for classOf[], is/asInstanceOf[]).
A ReferenceType has exactly the same level of precision as a JVM type.
There is a one-to-one relationship between a ReferenceType and an
instance of java.lang.Class at run-time. This means that:
All primitive types have their reference type (including scala.Byte
and scala.Short), and they are different from their boxed versions.
Raw JS types are not erased to any
Array types are like on the JVM
A ReferenceType therefore uniquely identifies a classOf[T]. It is
also the reference types that are used in method signatures, and which
therefore dictate JVM/IR overloading.
Reference types (allowed for classOf[], is/asInstanceOf[]).
A
ReferenceTypehas exactly the same level of precision as a JVM type. There is a one-to-one relationship between aReferenceTypeand an instance ofjava.lang.Classat run-time. This means that:scala.Byteandscala.Short), and they are different from their boxed versions.anyA
ReferenceTypetherefore uniquely identifies aclassOf[T]. It is also the reference types that are used in method signatures, and which therefore dictate JVM/IR overloading.