blob: 5c5d4485b6a717f0f6cd606d2cd9069bef9e2364 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Type in expressions to have them evaluated.
Type :help for more information.
scala> import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{universe=>ru}
scala> import scala.reflect.runtime.{currentMirror => cm}
import scala.reflect.runtime.{currentMirror=>cm}
scala> import scala.reflect.api.{Universe => ApiUniverse}
import scala.reflect.api.{Universe=>ApiUniverse}
scala> class A
defined class A
scala> lazy val apiru = ru: ApiUniverse
apiru: scala.reflect.api.Universe = <lazy>
scala> apiru.typeTag[A].in(cm)
res0: reflect.runtime.universe.TypeTag[A] = TypeTag[A]
scala> :quit
|