You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tmp$ scala
Welcome to Scala version 2.10.0-M7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_06).
Type in expressions to have them evaluated.
Type :help for more information.
tmp$ scala
Welcome to Scala version 2.10.0-M7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_06).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import scala.reflect._
import scala.reflect._
scala> val intTag = implicitly[ClassTag[Int]]
intTag: scala.reflect.ClassTag[Int] = ClassTag[int]
scala> val n = 1
n: Int = 1
scala> intTag.runtimeClass.isAssignableFrom(n.getClass)
res0: Boolean = true
scala> intTag unapply n
res1: Option[Int] = None
The text was updated successfully, but these errors were encountered: