import scala.reflect.runtime.universe._
object Main {
final type INeedDetails = (Int, String, Unit, Nothing, Float)
def main(args: Array[String]): Unit = println {
typeTag[INeedDetails]
}
}
上面的代码片段将打印TypeTag[Main.INeedDetails]
。有没有办法从中提取完整的(Int, String, Unit, Nothing, Float)
元组信息TypeTag
?