Can we constrain an extension function to data classes only in kotlin?

前端 未结 0 1008
陌清茗
陌清茗 2021-01-18 02:01

I want to create an extension function not only for a type but any data class. Is it possible? If yes, how?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题