I have a simple code,
case class Person(name: String, age:Int)
import scala.reflect.runtime.universe._
val t1 = typeOf[Person]
val t2 = t1.dealias
println(t1 == t2)
It outputs true, so I want to ask what is Type.dealias used for? When should I use it? Some code example would be helpful
I ask so because when I read spark code, ScalaReflection
, it almost always use dealias
before using the type