kotlin 1.3 没有jvmErasure
//kotlin 1.3 之前的版本 buildSequence
//sequence
sequence {
var thisClass:KClass<*> = this@BaseFragment::class
while (true){
yield(thisClass.supertypes)
thisClass = thisClass.supertypes.firstOrNull()?.jvmErasure?:break
}
}