smart cast 'xxx' to is impossible,because 'xxx' is a mutable property that could have been changed by this time

private var personDaoImpl: SysPersonDaoImpl? = null

一般是申明的时候指定了可以为空 但实际为null时,kotlin无法智能转换 ,修改成:

private lateinit var personDaoImpl: SysPersonDaoImpl


posted on 2019-09-30 16:26  caosiqiao  阅读(2648)  评论(0编辑  收藏  举报

导航