I have this variable declared in a library i canno...
# android
t
I have this variable declared in a library i cannot change
Copy code
abstract class WindowActivity : AppCompatActivity(), CoroutineScope {

    protected abstract var libraryVariable: LibraryType?
is there any way i can change the LibraryType when overriding this variable? so that i have in my android app
Copy code
override var libraryVariable: ApplicationType? = null
not kotlin but kotlin colored 1
s
No you can’t
If you want something that library doesn’t provide you have to add it yourself
u
@Tower Guidev2 what you are doing does work when ApplicationType is a subtype of LibraryType
🙌 1
1