class Foo(val x: Int) extends AnyVal object Test extends App { println(scala.reflect.runtime.universe.typeOf[Foo]) }