【发布时间】:2017-06-05 12:15:16
【问题描述】:
我想在构造函数中分配我的类变量,但我得到一个错误'期望成员声明'
class YLAService {
var context:Context?=null
class YLAService constructor(context: Context) {
this.context=context;// do something
}
}
【问题讨论】:
标签: kotlin