Sebouh Aguehian
01/11/2020, 6:32 PMclass MyClass {
val map = mutableMapOf<String, Any?>().withDefault { null }
var name: String by map
}
I cannot set name to null, but getting it returns null. This seems strange, given that the property has type String and not String?. Also, the IDE tells me the question mark in name?.toString() is unnecessary.Tesserakt
01/11/2020, 6:34 PMtoString defined for all types - nullable or notSebouh Aguehian
01/11/2020, 6:37 PMnotification?.icon , the IDE tells me the question mark is unnecessaryLastExceed
01/11/2020, 6:40 PMJames Richardson
01/11/2020, 9:20 PME.Kisaragi
01/12/2020, 8:03 AMSebouh Aguehian
01/12/2020, 3:12 PM