Why we can't declare variable as “var” for lazy initialization

前端 未结 0 1730
我在风中等你
我在风中等你 2021-01-18 15:20
private var TodosAdapter by lazy{ TodosAdapter() }

This is my code and when i declare it like this, compiler throws an error that

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