美文网首页
Kotlin 报错 Smart cast to

Kotlin 报错 Smart cast to

作者: WangJing6 | 来源:发表于2017-11-24 15:58 被阅读63次

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

    根本原因是可变变量和不可变变量的问题
    具体查看var和val的区别
    http://www.jianshu.com/p/d5e505fe29a4

    相关文章

      网友评论

          本文标题:Kotlin 报错 Smart cast to

          本文链接:https://www.haomeiwen.com/subject/xqrfbxtx.html