summaryrefslogblamecommitdiff
path: root/test/files/run/reify_magicsymbols.scala
blob: 256ecbea33799c7019b0fe80fa503ca43a2abd94 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                         
import scala.reflect.runtime.universe._

object Test extends App {
  println(typeOf[Any])
  println(typeOf[AnyVal])
  println(typeOf[AnyRef])
  println(typeOf[Null])
  println(typeOf[Nothing])
  println(typeOf[List[Any]])
  println(typeOf[List[AnyVal]])
  println(typeOf[List[AnyRef]])
  println(typeOf[List[Null]])
  println(typeOf[List[Nothing]])
  println(typeOf[{def foo(x: Int): Int}])
  println(typeOf[(Int*) => Unit])
  println(typeOf[(=> Int) => Unit])
}