David Kubecka
05/30/2024, 2:32 PMKotlin: Captured type in mutable property reference. Usages of 'set' may lead to cast exceptions.
interface IdHolder<T> {
var id: T
}
fun main() {
println(IdHolder<*>::id.name)
}
Obviously, the warning is not relevant for this particular situation since I'm not holding a reference to the mutable id
property. So my question is how to get rid of it. I guess I'm asking about the right argument to @Suppress
but don't know how to find it.ephemient
05/30/2024, 5:49 PMMUTABLE_PROPERTY_WITH_CAPTURED_TYPE
dmitriy.novozhilov
05/31/2024, 6:20 AM-Xrender-internal-diagnostic-names
compiler flag, so the compiler will add internal name for each warning and error it reports
In IDE you can inspect diagnostic names with internal mode enabledDavid Kubecka
05/31/2024, 7:26 AM