Ok this might be a little dumb question but here w...
# announcements
d
Ok this might be a little dumb question but here we go I'm creating an extension property on
androidx.compose.material.Colors
class which should be changed later that's why I have used
var
Copy code
var Colors.warning: Color
    get() = Color(0xFFFFC107)
    set(value) {
        field = value
    }
But I'm getting error in the setter
Unresolved reference: field
Dunno how to handle this scenario
k
https://kotlinlang.org/docs/extensions.html#extension-properties You cannot have a field backing an extension property
d
ohh ok got it