發表文章

目前顯示的是有「smart cast」標籤的文章

191225 Kotlin Smart cast to xxx is impossible, because yyy is a mutable property that could have been changed by this time.

Smart cast to xxx is impossible, because yyy is a mutable property that could have been changed by this time. 如果您遇上了以上的錯誤訊息 可參考以下連結中解答裡的第二種方法 https://stackoverflow.com/questions/44595529/smart-cast-to-type-is-impossible-because-variable-is-a-mutable-property-tha 如果想要對 let 做進一步的了解 可參考以下連結中的文章 https://medium.com/@elye.project/mastering-kotlin-standard-functions-run-with-let-also-and-apply-9cd334b0ef84