Does anyone know why this is happening? BaseFragm...
# multiplatform
k
Does anyone know why this is happening? BaseFragment is defined on Android by
BaseFragment<T: ViewModel>
LoginViewModel
is in my common code through this
Copy code
class LoginViewModel : BaseViewModel()
And
BaseViewModel
just expects
Copy code
expect open class BaseViewModel()
// Android
actual open class BaseViewModel actual constructor(): ViewModel()
// iOS
actual open class BaseViewModel actual constructor()
My code compiles normally, so I'm thinking this is just an IDE bug but I'm not sure. Maybe I did something wrong...
Yeah, I just disabled
kotlin.mpp.enableGranularSourceSetsMetadata=true
and it's back to normal
t
Did you find a fix while keeping
kotlin.mpp.enableGranularSourceSetsMetadata=true
?