blob: 37ff83c9ee3fab8429165c0362a7f4f0c32f96f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Type in expressions to have them evaluated.
Type :help for more information.
scala>
scala> import scala.reflect.mirror._
import scala.reflect.mirror._
scala> {
val x = "2"
val tt = implicitly[TypeTag[x.type]]
println(tt)
}
<console>:13: free term: Ident(newTermName("x")) defined by res0 in <console>:12:21
val tt = implicitly[TypeTag[x.type]]
^
ConcreteTypeTag[x.type]
scala>
scala>
|