首页 > 其他 > 详细

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

时间:2019-09-30 17:39:27      阅读:167      评论:0      收藏:0      [点我收藏+]
private var personDaoImpl: SysPersonDaoImpl? = null

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

private lateinit var personDaoImpl: SysPersonDaoImpl


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

原文:https://www.cnblogs.com/caosq/p/11613253.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!