📜  typeof kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:34.531000             🧑  作者: Mango

代码示例1
val number = 5
if(number is Int) {
   println("number is of type Int")
}

println("${number::class.simpleName}")    // "Int"
println("${number::class.qualifiedName}") // "kotlin.Int"