summaryrefslogtreecommitdiff
path: root/test/files/run/t5256d.check
blob: e466e1e2e8c9c1f0d1bb7ddc34ace94fb63f483e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Type in expressions to have them evaluated.
Type :help for more information.

scala> 

scala> import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe._

scala> import scala.reflect.runtime.{currentMirror => cm}
import scala.reflect.runtime.{currentMirror=>cm}

scala> class A { def foo = ??? }
defined class A

scala> val c = cm.reflectClass(classOf[A]).symbol
c: reflect.runtime.universe.ClassSymbol = class A

scala> println(c)
class A

scala> println(c.fullName)
$line8.$read.$iw.$iw.$iw.$iw.A

scala> println(c.typeSignature)
java.lang.Object {
  def <init>: <?>
  def foo: <?>
}

scala> 

scala>