Does anyone know why something like this would issue a “RememberReturnType” lint error? vm is clearly typed here. I wonder if it’s just a lint bug. FYI: This is not production code, it’s for a screen gallery showing off the UI portion, so we don’t need to go as deep as using a real view model factory.
val vm = remember {
MyVm(
savedStateHandle = SavedStateHandle(),
).apply {
someProperty = null
}
}
l
Louis Pullen-Freilich [G]
03/14/2023, 1:45 PM
Does it fail from both command line and inside Studio?