这种情况下,可以使用Kotlin 特别针对这个问题提供的特性: Typealias (本文下称"类型别名")。 ... typealias TeardownLogic = () -> Unit fun onCancel(teardown ...
確定! 回上一頁